@reqvire-org/ads 0.3.53 → 0.4.0
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 +9 -8
- package/dist/assets.mjs +1 -1
- package/dist/behaviors.mjs +6 -5
- package/dist/boundaries.mjs +5 -5
- package/dist/browser-audit.mjs +10 -5
- package/dist/bun-compiler.mjs +14 -7
- package/dist/check-service.mjs +83 -0
- package/dist/check.mjs +16 -17
- package/dist/cli.mjs +4 -2
- package/dist/config.mjs +17 -40
- package/dist/contracts.d.mts +9 -0
- package/dist/fonts-generated.mjs +2 -0
- package/dist/generated-entries.mjs +131 -0
- package/dist/icons.mjs +1 -1
- package/dist/init.mjs +11 -32
- package/dist/layers.mjs +7 -3
- package/dist/lint-config.mjs +4 -2
- package/dist/mcp/catalog.mjs +2 -1
- package/dist/mcp/context.mjs +3 -3
- package/dist/mcp/drafts.mjs +136 -121
- package/dist/mcp/mutations.mjs +65 -19
- package/dist/mcp/preview-watch.mjs +31 -5
- package/dist/mcp/prompts.mjs +1 -1
- package/dist/mcp/server.mjs +79 -38
- package/dist/mcp/showcase-host.mjs +20 -7
- package/dist/oxlint.mjs +3 -2
- package/dist/program-cache.mjs +36 -0
- package/dist/public-api.mjs +2 -1
- package/dist/scenarios-compiler.mjs +82 -14
- package/dist/scenarios-vite.mjs +1 -1
- package/dist/scenarios.mjs +4 -3
- package/dist/showcase/client.bundle.js +1 -1
- package/dist/showcase/index.html +2 -2
- package/dist/skills/ads-break-ui/SKILL.md +25 -28
- package/dist/skills/ads-break-ui/references/behaviors.md +7 -6
- package/dist/skills/ads-break-ui/references/captures.md +7 -32
- package/dist/skills/ads-break-ui/references/contracts.md +58 -25
- package/dist/skills/ads-break-ui/references/drafts.md +59 -43
- package/dist/skills/ads-break-ui/references/evidence.md +1 -1
- package/dist/skills/ads-break-ui/references/guarded-editing.md +58 -47
- package/dist/skills/ads-break-ui/references/review.md +9 -8
- package/dist/skills/ads-break-ui/references/scenarios.md +1 -1
- package/dist/skills/ads-break-ui/references/validation.md +8 -4
- package/dist/skills/ads-break-ui/references/workflows.md +15 -8
- package/dist/skills/ads-designer/SKILL.md +25 -28
- package/dist/skills/ads-designer/references/accessibility.md +9 -5
- package/dist/skills/ads-designer/references/behaviors.md +7 -6
- package/dist/skills/ads-designer/references/captures.md +7 -32
- package/dist/skills/ads-designer/references/cli.md +5 -1
- package/dist/skills/ads-designer/references/contracts.md +58 -25
- package/dist/skills/ads-designer/references/drafts.md +59 -43
- package/dist/skills/ads-designer/references/evidence.md +1 -1
- package/dist/skills/ads-designer/references/guarded-editing.md +58 -47
- package/dist/skills/ads-designer/references/performance.md +3 -2
- package/dist/skills/ads-designer/references/review.md +9 -8
- package/dist/skills/ads-designer/references/scenarios.md +1 -1
- package/dist/skills/ads-designer/references/validation.md +8 -4
- package/dist/skills/ads-designer/references/workflows.md +15 -8
- package/dist/skills/ads-import/SKILL.md +25 -28
- package/dist/skills/ads-import/references/behaviors.md +7 -6
- package/dist/skills/ads-import/references/captures.md +7 -32
- package/dist/skills/ads-import/references/cli.md +5 -1
- package/dist/skills/ads-import/references/contracts.md +58 -25
- package/dist/skills/ads-import/references/drafts.md +59 -43
- package/dist/skills/ads-import/references/evidence.md +1 -1
- package/dist/skills/ads-import/references/guarded-editing.md +58 -47
- package/dist/skills/ads-import/references/review.md +9 -8
- package/dist/skills/ads-import/references/scenarios.md +1 -1
- package/dist/skills/ads-import/references/validation.md +8 -4
- package/dist/skills/ads-import/references/workflows.md +15 -8
- package/dist/skills/ads-motion/SKILL.md +25 -28
- package/dist/skills/ads-motion/references/behaviors.md +7 -6
- package/dist/skills/ads-motion/references/captures.md +7 -32
- package/dist/skills/ads-motion/references/contracts.md +58 -25
- package/dist/skills/ads-motion/references/drafts.md +59 -43
- package/dist/skills/ads-motion/references/evidence.md +1 -1
- package/dist/skills/ads-motion/references/guarded-editing.md +58 -47
- package/dist/skills/ads-motion/references/review.md +9 -8
- package/dist/skills/ads-motion/references/scenarios.md +1 -1
- package/dist/skills/ads-motion/references/validation.md +8 -4
- package/dist/skills/ads-motion/references/workflows.md +15 -8
- package/dist/skills/ads-port/SKILL.md +25 -28
- package/dist/skills/ads-port/references/behaviors.md +7 -6
- package/dist/skills/ads-port/references/captures.md +7 -32
- package/dist/skills/ads-port/references/cli.md +5 -1
- package/dist/skills/ads-port/references/contracts.md +58 -25
- package/dist/skills/ads-port/references/drafts.md +59 -43
- package/dist/skills/ads-port/references/evidence.md +1 -1
- package/dist/skills/ads-port/references/guarded-editing.md +58 -47
- package/dist/skills/ads-port/references/native-implementation.md +6 -6
- package/dist/skills/ads-port/references/review.md +9 -8
- package/dist/skills/ads-port/references/scenarios.md +1 -1
- package/dist/skills/ads-port/references/validation.md +8 -4
- package/dist/skills/ads-port/references/workflows.md +15 -8
- package/dist/starters/preact/design-system/components/Layout/Grid/Grid.ads.contract.ts +6 -0
- package/dist/starters/preact/design-system/review/token-preview/TokenPreview.ads.contract.ts +6 -0
- package/dist/starters/preact/ds.config.json +0 -14
- package/dist/starters/react/README.md +9 -5
- package/dist/starters/react/design-system/components/Actions/Button/Button.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Content/Image/Image.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.contract.ts +6 -0
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/controllers/Palette/Palette.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/index.ts +3 -7
- package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/brand-preview/BrandPreview.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/grid-cell/GridCell.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/index.ts +4 -3
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.contract.ts +6 -0
- package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/styles.css +1 -0
- package/dist/starters/react/ds.config.json +0 -14
- package/dist/style-boundaries.mjs +7 -6
- package/dist/test-boundaries.mjs +2 -2
- package/dist/themes-watch.mjs +9 -3
- package/dist/token-fixtures.mjs +1 -1
- package/dist/unit-contracts.mjs +38 -4
- package/dist/units.mjs +16 -91
- package/dist/validation-checks.mjs +7 -1
- package/docs/ADS.md +10 -10
- package/docs/ARCHITECTURE.md +79 -43
- package/docs/BEHAVIORS.md +8 -7
- package/docs/CACHING.md +15 -6
- package/docs/CHANGELOG.md +61 -12
- package/docs/COMPARISON.md +1 -1
- package/docs/CONTRACTS.md +10 -25
- package/docs/GUIDE.md +64 -55
- package/docs/MCP.md +116 -151
- package/package.json +1 -1
- package/dist/contract-migration.mjs +0 -110
- package/dist/mcp/draft-exports.mjs +0 -40
- package/dist/mcp/edit-preparation.mjs +0 -115
package/docs/GUIDE.md
CHANGED
|
@@ -36,11 +36,13 @@ An agent uses the MCP tools to inspect, edit and review the project:
|
|
|
36
36
|
4. Select the editing route, independently of `mutations.enabled`. With direct
|
|
37
37
|
source access, edit owned files and use the existing compiler/preview; run
|
|
38
38
|
current gates and relevant project/behavior checks before finishing. With
|
|
39
|
-
MCP-only access and mutation tools enabled,
|
|
40
|
-
|
|
41
|
-
`
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
MCP-only access and mutation tools enabled, every change goes through a draft:
|
|
40
|
+
discover owners with `ads_units`, use `ads_create_draft`,
|
|
41
|
+
`ads_read_file`/`ads_update_draft` (file contents or a Git diff), rendered
|
|
42
|
+
`ads_show_draft` review, an optional `ads_accept` dry run and exact-revision
|
|
43
|
+
`ads_accept`. An owner is in at most one open draft. Accept dependencies first and
|
|
44
|
+
review dependents again. After a series of accepted drafts, run the stage check
|
|
45
|
+
`ads_validate` (validation policy, `scope:"changed"`). A read-only MCP connection
|
|
44
46
|
supports direct editors; it cannot edit for an MCP-only client.
|
|
45
47
|
5. Review diagnostics, registered behavior evidence and the rendered result.
|
|
46
48
|
`ads_behaviors` discovers guarantees; `ads_verify` executes selected registered
|
|
@@ -55,9 +57,8 @@ local, are untriaged, and do not bypass guards. Read `ads://guides/reporting` or
|
|
|
55
57
|
|
|
56
58
|
For an on-demand screenshot, call `ads_capture` with a discovered scenario ID and
|
|
57
59
|
optionally a named `captureTargets` element, theme and viewport. To compare a
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
Normal patches and dry runs create no screenshots. Capture uses project-installed
|
|
60
|
+
draft with accepted source, pass its `draft` id and exact `revision`; acceptance and
|
|
61
|
+
its dry run create no screenshots. Capture uses project-installed
|
|
61
62
|
Playwright and its browser; ADS installs neither (`ads create` and `ads init` declare
|
|
62
63
|
`@playwright/test`; run `npx playwright install chromium` once).
|
|
63
64
|
|
|
@@ -448,11 +449,15 @@ Guarded MCP editing is opt-in. Its mandatory checks and optional project
|
|
|
448
449
|
`acceptance.checks` scripts run in a temporary project copy with installed
|
|
449
450
|
dependencies. Project scripts default to 60 seconds each; use the explicit
|
|
450
451
|
`mcp.mutationCheckTimeoutMs` budget (100–300000 ms) for measured slower builds.
|
|
452
|
+
A preview waits up to 5 minutes for its build, including the first build after the
|
|
453
|
+
MCP server starts; set `mcp.previewBuildTimeoutMs` (1000–3600000 ms) to change it.
|
|
451
454
|
Behavior profiles have a separate whole-run budget.
|
|
452
455
|
Set `acceptance.behaviorChecks` to require affected registered tests at acceptance.
|
|
453
456
|
Set `validation.checks` and `validation.behaviorChecks` independently for audits.
|
|
454
|
-
Both script lists default to empty; no names are inferred.
|
|
455
|
-
browser audit
|
|
457
|
+
Both script lists default to empty; no names are inferred. The validation policy runs
|
|
458
|
+
the full browser audit (`validation.browserAudit: false` turns it off); draft
|
|
459
|
+
acceptance audits per `acceptance.browserAudit`: `"owners"` (default), `"affected"` or
|
|
460
|
+
`false`. Direct source edits
|
|
456
461
|
can run `ads validate --policy acceptance`; ordinary `ads validate` selects the
|
|
457
462
|
validation policy. See [policy guidance](../skills/ads-designer/references/validation.md).
|
|
458
463
|
When the acceptance policy requires affected registered behavior checks (or
|
|
@@ -512,9 +517,12 @@ There is no warning level.
|
|
|
512
517
|
| `ads audit` | axe-core (WCAG A/AA rules), ADS's non-text contrast check, `layout-shift` and `layout-overflow` at 390, 768 and 1280 px in every component, pattern and composition scenario, once per brand and theme, and in a 240 px container for components and patterns |
|
|
513
518
|
| `ads validate` | The validation policy: `ads check` rules, `validation.checks` scripts, current previews, registered behavior checks (`validation.behaviorChecks`, default `true`) and the browser audit |
|
|
514
519
|
| `ads validate --policy acceptance` | The acceptance policy against current source, applying nothing: `ads check` rules, `acceptance.checks` scripts, affected behavior checks when `acceptance.behaviorChecks` is `true` (default `false`) and the browser audit |
|
|
515
|
-
| MCP acceptance | `ads_accept
|
|
520
|
+
| MCP acceptance | `ads_accept` runs the acceptance policy on the draft's candidate and writes no source unless it passes (`dryRun:true` writes nothing); `acceptance.browserAudit` audits the draft owners' own UI scenarios (`"owners"`, default), every scenario the change reaches (`"affected"`; all of them after configuration, foundation, token or asset changes) or none (`false`) |
|
|
521
|
+
| Stage check | After a series of accepted drafts, `ads_validate` with the validation policy and `scope:"changed"` audits everything they reached and runs the registered behavior checks |
|
|
516
522
|
|
|
517
|
-
**Browser audit.** Both policies run it by default
|
|
523
|
+
**Browser audit.** Both policies run it by default: the validation policy over every
|
|
524
|
+
scenario, acceptance over the draft owners' own scenarios unless set to `"affected"`.
|
|
525
|
+
`mcp.auditPages` (1–16, default 4) sets how many pages render at once. Each `a11y-axe`,
|
|
518
526
|
`a11y-non-text-contrast`, `layout-overflow` and `layout-shift` finding is an error that fails the policy, and an audit that cannot run fails it with a `browser-audit` error
|
|
519
527
|
naming what to install. Each `a11y-incomplete` finding is an info item that fails nothing: axe could
|
|
520
528
|
not decide that rule on those elements, so check it by hand. It names the axe rule, scenario, themes,
|
|
@@ -527,12 +535,12 @@ npx playwright install chromium # Bun: bunx playwright install chromium
|
|
|
527
535
|
```
|
|
528
536
|
|
|
529
537
|
`mcp.capture` selects `browser` (`chromium`, `firefox`, `webkit`), an installed Chrome
|
|
530
|
-
`channel` such as `"chrome"`, and `timeoutMs`. To
|
|
531
|
-
`browserAudit`
|
|
538
|
+
`channel` such as `"chrome"`, and `timeoutMs`. To choose the audits, set
|
|
539
|
+
`browserAudit` in `ds.config.json`:
|
|
532
540
|
|
|
533
541
|
```json
|
|
534
542
|
{
|
|
535
|
-
"acceptance": { "checks": [], "behaviorChecks": false, "browserAudit":
|
|
543
|
+
"acceptance": { "checks": [], "behaviorChecks": false, "browserAudit": "affected" },
|
|
536
544
|
"validation": { "checks": [], "behaviorChecks": true, "browserAudit": false }
|
|
537
545
|
}
|
|
538
546
|
```
|
|
@@ -715,8 +723,8 @@ project with no `@font-face` gets none of these.
|
|
|
715
723
|
|
|
716
724
|
The starters' `Image` lazily loads and reserves space; `priority` marks the view's main visible
|
|
717
725
|
image. When body or heading text uses a font from `tokens/fonts.css`, `ads assets` writes
|
|
718
|
-
`tokens/fonts.preload.generated.ts
|
|
719
|
-
render. It imports the files through the bundler, Vite or Bun, so the preload and the stylesheet share
|
|
726
|
+
`tokens/fonts.preload.generated.ts`, and the generated public barrel re-exports it: call
|
|
727
|
+
`preloadFonts()` from the public entry in the app entry before the first render. It imports the files through the bundler, Vite or Bun, so the preload and the stylesheet share
|
|
720
728
|
one URL. For a preload earlier than JavaScript, a build step or prerender can call `fontPreloadTags()`
|
|
721
729
|
for `<link>` tags or `fontPreloadHeader()` for a `Link` header value; `fontPreloads` is the same list.
|
|
722
730
|
A project that sets heading fonts per component names what to preload in `assets.preloadFonts`:
|
|
@@ -791,7 +799,7 @@ loads only the selected scenario's dependencies. TSX/Linaria compilation still
|
|
|
791
799
|
happens automatically. Accepted configuration-unit mutations replace the managed
|
|
792
800
|
compiler while keeping MCP connected. External compiler/configuration or dependency
|
|
793
801
|
changes may require restarting the runtime; ordinary owner/fixture/style/asset edits do not.
|
|
794
|
-
See [the compiler contract](MCP.md#
|
|
802
|
+
See [the compiler contract](MCP.md#one-client-command-managed-preview-builds) for revisions,
|
|
795
803
|
diagnostics, invalidation and the shared resource graph.
|
|
796
804
|
|
|
797
805
|
Colocate `<Owner>.ads.scenario.tsx` and `<Owner>.ads.fixture.ts` beside tokens and
|
|
@@ -1028,10 +1036,10 @@ and composition scenario, once per declared brand and theme (`--scenario`, `--th
|
|
|
1028
1036
|
`--brand` narrow it). Each violation is an `a11y-axe` error naming the axe rule, WCAG
|
|
1029
1037
|
criterion, themes and brands, failing elements and help link, and `ads audit` exits 1. It
|
|
1030
1038
|
needs the project's Playwright and browser, as captures do. The validation and acceptance
|
|
1031
|
-
policies run it too unless their `browserAudit` is `false`; MCP draft acceptance
|
|
1032
|
-
|
|
1033
|
-
writing source, and an `a11y-axe`, `a11y-non-text-contrast` or
|
|
1034
|
-
the change.
|
|
1039
|
+
policies run it too unless their `browserAudit` is `false`; MCP draft acceptance audits
|
|
1040
|
+
the draft owners' own scenarios (or, with `"affected"`, every scenario the change
|
|
1041
|
+
reaches) before writing source, and an `a11y-axe`, `a11y-non-text-contrast` or
|
|
1042
|
+
`layout-overflow` error rejects the change.
|
|
1035
1043
|
`ads tokens --format dtcg` exports the tokens as W3C Design Tokens JSON for design tools
|
|
1036
1044
|
(`--theme <name>` and `--brand <name>` select one context).
|
|
1037
1045
|
|
|
@@ -1204,17 +1212,30 @@ and required MCP checks. The optional linter adapter is one project choice.
|
|
|
1204
1212
|
|
|
1205
1213
|
### Project boundaries and assets
|
|
1206
1214
|
|
|
1207
|
-
|
|
1208
|
-
|
|
1215
|
+
Style permissions belong to their owner, in its `<Owner>.ads.contract.ts`, with paths
|
|
1216
|
+
relative to the contract:
|
|
1217
|
+
|
|
1218
|
+
```ts
|
|
1219
|
+
export default {
|
|
1220
|
+
schemaVersion: 1,
|
|
1221
|
+
styles: { writes: { "./geometry.ts": ["--ds-panel-height"] }, inline: [] },
|
|
1222
|
+
customization: ["--ds-panel-gap"],
|
|
1223
|
+
} satisfies UnitContract;
|
|
1224
|
+
```
|
|
1225
|
+
|
|
1226
|
+
`styles.writes` permits only the listed CSS properties in that exact file. Use
|
|
1227
|
+
kebab-case (`user-select`) or an exact custom property. Static assignments,
|
|
1228
|
+
`setProperty`, and `removeProperty` can use that permission; `cssText`, computed
|
|
1229
|
+
property names, escaped style objects, and bulk writes remain forbidden. Plain
|
|
1230
|
+
property reads are allowed. `styles.inline` is a separate file-level JSX/type
|
|
1231
|
+
exception and never permits imperative writes by itself. `customization` lists a
|
|
1232
|
+
component's non-state `--ds-*` variables that patterns, the showcase and the
|
|
1233
|
+
application may set.
|
|
1234
|
+
|
|
1235
|
+
Optional asset configuration adds only the paths that the project actually uses:
|
|
1209
1236
|
|
|
1210
1237
|
```json
|
|
1211
1238
|
{
|
|
1212
|
-
"boundaries": {
|
|
1213
|
-
"styleWrites": [
|
|
1214
|
-
{ "file": "design-system/components/geometry.ts", "properties": ["--ds-panel-height"] }
|
|
1215
|
-
],
|
|
1216
|
-
"componentVariables": ["--ds-panel-gap"]
|
|
1217
|
-
},
|
|
1218
1239
|
"assets": {
|
|
1219
1240
|
"iconSource": "assets/brand/app-icon.svg",
|
|
1220
1241
|
"publicDirs": ["public/assets"],
|
|
@@ -1224,13 +1245,7 @@ actually uses; the tool contains no component or product-specific lists:
|
|
|
1224
1245
|
}
|
|
1225
1246
|
```
|
|
1226
1247
|
|
|
1227
|
-
Merge
|
|
1228
|
-
listed CSS properties in that exact file. Use kebab-case (`user-select`) or an
|
|
1229
|
-
exact custom property. Static assignments, `setProperty`, and `removeProperty`
|
|
1230
|
-
can use that boundary; `cssText`, computed property names, escaped style
|
|
1231
|
-
objects, and bulk writes remain forbidden. Plain property reads are allowed.
|
|
1232
|
-
`inlineStyleFiles` is a separate file-level JSX/type exception and never
|
|
1233
|
-
permits imperative writes by itself.
|
|
1248
|
+
Merge this section into `ds.config.json`.
|
|
1234
1249
|
|
|
1235
1250
|
Asset checks compare `design-system/assets/` with each configured public mount
|
|
1236
1251
|
and `design-system/showcase/public/assets/`, adjusting for `dsDir`. A relative
|
|
@@ -1262,14 +1277,17 @@ Paths stay within the receiving project:
|
|
|
1262
1277
|
"stylesEntry": "styles.css",
|
|
1263
1278
|
"tokenDir": "tokens",
|
|
1264
1279
|
"themes": [{ "name": "light", "scheme": "light" }, { "name": "dark", "scheme": "dark" }],
|
|
1265
|
-
"inlineStyleFiles": [],
|
|
1266
1280
|
"layout": { "widthTokens": [], "fixedWidthUnits": [] },
|
|
1267
1281
|
"oxlint": { "plugins": [], "rules": {} }
|
|
1268
1282
|
}
|
|
1269
1283
|
```
|
|
1270
1284
|
|
|
1271
1285
|
`layout` declares allowed width tokens and owners with fixed widths; see
|
|
1272
|
-
[Checks and guards](#checks-and-guards).
|
|
1286
|
+
[Checks and guards](#checks-and-guards). `publicEntry`, `reviewEntry` and
|
|
1287
|
+
`stylesEntry` name generated files: ADS writes the barrels from the owners'
|
|
1288
|
+
`<Owner>.ads.exports.ts` files and the styles entry from the token sheets (`ads
|
|
1289
|
+
assets`, the showcase and the MCP server); `ads check` reports one that is stale or
|
|
1290
|
+
edited by hand.
|
|
1273
1291
|
|
|
1274
1292
|
These source-layout defaults apply when the file is absent; the example omits
|
|
1275
1293
|
the required init-time framework choice. Run `ads init --framework react` (or
|
|
@@ -1300,15 +1318,13 @@ native ADS import guards enforce this boundary. It does not
|
|
|
1300
1318
|
allow application code to import private ADS modules or build helpers to import
|
|
1301
1319
|
private UI implementation.
|
|
1302
1320
|
|
|
1303
|
-
Unused `
|
|
1304
|
-
`stale-style-boundary` check. Inline permissions recognize
|
|
1305
|
-
factories and UI `CSSProperties` use; property permissions require
|
|
1306
|
-
or removal, not a read.
|
|
1307
|
-
|
|
1308
|
-
permissions and other settings. A future filename can be valid configuration,
|
|
1309
|
-
but the complete checked candidate must contain the matching use.
|
|
1321
|
+
Unused `styles.inline` entries and `styles.writes` properties fail the core
|
|
1322
|
+
`stale-style-boundary` check, reported on the contract. Inline permissions recognize
|
|
1323
|
+
JSX, imported UI factories and UI `CSSProperties` use; property permissions require
|
|
1324
|
+
an exact write or removal, not a read. Change an owner's source and its contract
|
|
1325
|
+
permissions together in its draft.
|
|
1310
1326
|
|
|
1311
|
-
`
|
|
1327
|
+
`styles.inline` should name only documented geometry/renderer boundaries,
|
|
1312
1328
|
not broad styling exceptions. Ignore `.ds/`; generated paths refer to the project
|
|
1313
1329
|
and its locally installed tool.
|
|
1314
1330
|
|
|
@@ -1360,14 +1376,7 @@ scenario, fixture, helpers, test, spec or behavior.spec. Optional
|
|
|
1360
1376
|
paint and declarative-consumer contracts. Production APIs/types stay in runtime
|
|
1361
1377
|
files. ADS reads contract data statically; no project import runs during discovery.
|
|
1362
1378
|
See [CONTRACTS.md](CONTRACTS.md) for exact fields, supported producer forms and
|
|
1363
|
-
source/browser limits.
|
|
1364
|
-
remain supported during migration.
|
|
1365
|
-
|
|
1366
|
-
With supporting tooling installed and MCP reconnected, discover one owner, call
|
|
1367
|
-
`ads_prepare_patch` with `action: "migrate"`, inspect the local draft/notes, and use
|
|
1368
|
-
normal diff, dry-run and apply gates. This never changes live source by itself.
|
|
1369
|
-
Review custom runner globs and unimportable private subjects before application;
|
|
1370
|
-
migrate passing owners in stages and preserve pending agent drafts.
|
|
1379
|
+
source/browser limits. Only `.ads.`-marked filenames are development roles.
|
|
1371
1380
|
|
|
1372
1381
|
Project scale policies remain explicit. A registered check can call
|
|
1373
1382
|
`inspectTokenOrigins(inspectTokens(root), target, {stopAt: allowedSharedTokens})`
|