@reqvire-org/ads 0.3.25 → 0.3.27
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 +28 -15
- package/dist/bootstrap-ds/ADS.md +28 -30
- package/dist/bootstrap-ds/README.md +13 -11
- package/dist/bootstrap-ds/design-system/assets/brand/README.md +3 -2
- package/dist/bootstrap-ds/ds.config.json +1 -1
- package/dist/bootstrap-ds/scripts/build-mcp-previews.mjs +1 -1
- package/dist/boundaries.mjs +0 -3
- package/dist/capture.mjs +1 -1
- 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/development-runtime.mjs +17 -0
- package/dist/evidence.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/init.mjs +14 -12
- package/dist/mcp/apps.mjs +1 -1
- package/dist/mcp/context.mjs +8 -7
- package/dist/mcp/mutations.mjs +3 -2
- package/dist/mcp/preview-watch.mjs +2 -1
- package/dist/mcp/prompts.mjs +4 -4
- package/dist/mcp/reports.mjs +101 -0
- package/dist/mcp/server.mjs +41 -3
- package/dist/mcp/widget.bundle.js +1 -1
- package/dist/paint-contracts.mjs +4 -5
- package/dist/preview-files.mjs +33 -0
- package/dist/preview-inputs.mjs +6 -5
- package/dist/preview-resources.mjs +1 -2
- package/dist/scenarios-compiler.mjs +7 -7
- package/dist/scenarios.mjs +14 -14
- package/dist/showcase/sandbox.bundle.js +1 -1
- package/dist/skills/README.md +14 -4
- package/dist/skills/ads-break-ui/SKILL.md +29 -15
- package/dist/skills/ads-break-ui/references/atomic-styles.md +9 -2
- package/dist/skills/ads-break-ui/references/behaviors.md +396 -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/layers.md +16 -0
- package/dist/skills/ads-break-ui/references/reporting.md +101 -0
- package/dist/skills/ads-break-ui/references/runtimes.md +110 -0
- package/dist/skills/ads-break-ui/references/scenarios.md +9 -15
- package/dist/skills/ads-designer/README.md +6 -0
- package/dist/skills/ads-designer/SKILL.md +35 -20
- package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +28 -30
- package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +13 -11
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/README.md +3 -2
- package/dist/skills/ads-designer/assets/bootstrap-ds/ds.config.json +1 -1
- package/dist/skills/ads-designer/assets/bootstrap-ds/scripts/build-mcp-previews.mjs +1 -1
- package/dist/skills/ads-designer/references/atomic-styles.md +9 -2
- package/dist/skills/ads-designer/references/behaviors.md +396 -0
- package/dist/skills/ads-designer/references/captures.md +1 -1
- package/dist/skills/ads-designer/references/cli.md +10 -7
- package/dist/skills/ads-designer/references/contracts.md +18 -37
- package/dist/skills/ads-designer/references/design-craft.md +32 -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/layers.md +16 -0
- 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/runtimes.md +110 -0
- package/dist/skills/ads-designer/references/scenarios.md +9 -15
- package/dist/skills/ads-import/SKILL.md +51 -20
- package/dist/skills/ads-import/agents/openai.yaml +2 -2
- package/dist/skills/ads-import/references/atomic-styles.md +9 -2
- package/dist/skills/ads-import/references/behaviors.md +396 -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/cli.md +10 -7
- package/dist/skills/ads-import/references/compatibility.md +113 -0
- 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 +9 -2
- package/dist/skills/ads-import/references/layers.md +16 -0
- package/dist/skills/ads-import/references/reporting.md +101 -0
- package/dist/skills/ads-import/references/runtimes.md +110 -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 +28 -14
- package/dist/skills/ads-motion/references/atomic-styles.md +9 -2
- package/dist/skills/ads-motion/references/behaviors.md +396 -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/layers.md +16 -0
- package/dist/skills/ads-motion/references/reporting.md +101 -0
- package/dist/skills/ads-motion/references/runtimes.md +110 -0
- package/dist/skills/ads-motion/references/scenarios.md +9 -15
- package/dist/skills/{ads-migrate → ads-port}/SKILL.md +64 -33
- 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 +396 -0
- package/dist/skills/{ads-migrate → ads-port}/references/captures.md +1 -1
- package/dist/skills/{ads-migrate → ads-port}/references/cli.md +10 -7
- 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/layers.md +16 -0
- 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-port/references/runtimes.md +110 -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/dist/verification.mjs +4 -3
- package/docs/ADS.md +59 -73
- package/docs/ARCHITECTURE.md +68 -20
- package/docs/BEHAVIORS.md +46 -41
- package/docs/CHANGELOG.md +44 -1
- package/docs/COMPARISON.md +63 -0
- package/docs/CONTRACTS.md +18 -37
- package/docs/GUIDE.md +41 -23
- package/docs/MCP.md +100 -15
- package/package.json +5 -4
- 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/review.md +0 -0
|
@@ -30,6 +30,22 @@ Do not classify by import count, JSX element count, names or file length. Review
|
|
|
30
30
|
the capability and its consumer contract. Preserve valid APIs when tracing is
|
|
31
31
|
inconclusive; do not make an export private or add a product prop just to pass.
|
|
32
32
|
|
|
33
|
+
## Share UI across websites and MCP Apps
|
|
34
|
+
|
|
35
|
+
Build and adapt UI through the project's public design-system APIs. Websites
|
|
36
|
+
and MCP Apps use the same components, patterns, controllers, tokens and styles.
|
|
37
|
+
Application adapters supply data and actions and own mounting, routing, stores,
|
|
38
|
+
MCP communication, tool-result mapping and serving. Keep those integrations out
|
|
39
|
+
of reusable UI implementations. ADS's own MCP server supports design-system
|
|
40
|
+
development, inspection and rendered review.
|
|
41
|
+
|
|
42
|
+
The ADS showcase renders the real public implementation inside an MCP App.
|
|
43
|
+
Its previews and registered checks provide evidence for the exercised states,
|
|
44
|
+
themes, sizes and environment. Relevant application checks verify website
|
|
45
|
+
integration. Reuse existing verification; add targeted checks when a change
|
|
46
|
+
exposes an uncovered requirement. Record what was actually verified, including
|
|
47
|
+
any remaining host or integration assumptions.
|
|
48
|
+
|
|
33
49
|
## Demonstrate the production implementation
|
|
34
50
|
|
|
35
51
|
Product patterns are reusable application UI, not showcase replicas. A scenario
|
|
@@ -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.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Node and Bun development runtimes
|
|
2
|
+
|
|
3
|
+
ADS supports Node 22.12+ and Bun 1.3.13+. A Bun project does not need Node or npm.
|
|
4
|
+
The launcher selects the interpreter; package manager and UI framework are
|
|
5
|
+
separate concerns. Preserve the target project's choices.
|
|
6
|
+
|
|
7
|
+
For a Node/npm project, run inside its package root:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npx @reqvire-org/ads init --framework react
|
|
11
|
+
npm install
|
|
12
|
+
npm run build
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
For Bun:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
bunx --bun @reqvire-org/ads init --framework react
|
|
19
|
+
bun install
|
|
20
|
+
bun --bun run build
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Use `--framework preact` for native Preact. Init detects an existing package
|
|
24
|
+
manager or infers Bun from its launcher when no project choice exists. Use
|
|
25
|
+
`--package-manager bun` only for an explicit override; existing project metadata
|
|
26
|
+
and lockfiles take precedence over the launcher.
|
|
27
|
+
Use the installed/pinned ADS version. Never substitute an unrelated bare package.
|
|
28
|
+
|
|
29
|
+
`--bun` is essential to an explicit Bun runtime choice: many JavaScript tools
|
|
30
|
+
have a `#!/usr/bin/env node` shebang. Bun can otherwise launch Node when it is
|
|
31
|
+
available. Generated ADS scripts force Bun, including Oxlint and its JavaScript
|
|
32
|
+
plugins. Existing application scripts and lockfiles are preserved; translate
|
|
33
|
+
nested `npm` commands when intentionally converting an application to Bun.
|
|
34
|
+
Dependency packages and custom build commands must support the chosen runtime.
|
|
35
|
+
|
|
36
|
+
For ordinary `bun run build` commands to always select Bun, the project may
|
|
37
|
+
set its own `bunfig.toml`:
|
|
38
|
+
|
|
39
|
+
```toml
|
|
40
|
+
[run]
|
|
41
|
+
bun = true
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
This is equivalent to passing `--bun` for script execution. ADS does not replace
|
|
45
|
+
an existing Bun configuration. Keep the explicit flag in MCP launch settings.
|
|
46
|
+
|
|
47
|
+
## MCP connection
|
|
48
|
+
|
|
49
|
+
For Bun, use these values in Claude's `.mcp.json` or Codex's MCP configuration:
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"command": "bunx",
|
|
54
|
+
"args": ["--bun", "@reqvire-org/ads", "mcp"]
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Add `--mutations` to enable guarded source changes and `--port 4191` when the
|
|
59
|
+
project pins its showcase port. Append a project directory when the client
|
|
60
|
+
does not launch in the package root. For a local installed tool, use the
|
|
61
|
+
generated `ads-mcp` or `ads-read-mcp` package script. Keep stdout for JSON-RPC.
|
|
62
|
+
|
|
63
|
+
## Compiler and browser workers
|
|
64
|
+
|
|
65
|
+
Use the portable command in `ds.config.json`:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"mcp": {
|
|
70
|
+
"previewWatch": {
|
|
71
|
+
"command": "runtime",
|
|
72
|
+
"args": ["scripts/build-mcp-previews.mjs", "--watch"]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`runtime` means the interpreter that launched ADS, including its absolute
|
|
79
|
+
executable when available through an environment manager. It also works in
|
|
80
|
+
registered behavior profiles, with the project's installed runner entry file in
|
|
81
|
+
`args`. Explicit `node`, `bun` and custom executable commands retain their meaning;
|
|
82
|
+
ADS never silently substitutes another interpreter for them. Node-specific
|
|
83
|
+
commands still need Node, even in a Bun-managed package.
|
|
84
|
+
|
|
85
|
+
Mandatory architecture/Oxlint validation, ownership guards and screenshot workers
|
|
86
|
+
inherit ADS's interpreter. Browser tests remain project-owned Playwright specs;
|
|
87
|
+
Chromium/WebKit is a separate browser dependency, not a Node requirement. Runtime
|
|
88
|
+
identity participates in behavior evidence freshness.
|
|
89
|
+
|
|
90
|
+
For diagnosis, inspect `ads_status.project.runtime`: `name`, `version`,
|
|
91
|
+
`executable` and `binDir`. `project.commands` contains the discovered package
|
|
92
|
+
commands with the appropriate Bun flags. The MCP process and agent shell may
|
|
93
|
+
have different PATHs; use these reported values instead of scanning the machine
|
|
94
|
+
or installing another runtime without evidence.
|
|
95
|
+
|
|
96
|
+
Preview watching excludes standard output trees by default, including nested
|
|
97
|
+
Cargo `target/` directories, without allocating watches inside them. Explicit
|
|
98
|
+
`sourceDir` and `dsDir` take priority over those default output names. Register
|
|
99
|
+
custom outputs in `assets.generatedPaths`; do not copy the default list into a
|
|
100
|
+
new project's config. `ENOSPC` from `fs.watch` can mean the OS watch limit rather
|
|
101
|
+
than disk space: inspect the failing path and generated-tree traversal before
|
|
102
|
+
raising system limits or deleting files. Generated churn must not mark previews
|
|
103
|
+
stale; actual source changes must still rebuild.
|
|
104
|
+
|
|
105
|
+
Bundled binary renderers may load their forwarded `blob:` resources. ADS's
|
|
106
|
+
showcase/explorer permits WebAssembly compilation while keeping JavaScript eval
|
|
107
|
+
and undeclared network requests blocked. External MCP hosts control their CSP.
|
|
108
|
+
Test the actual renderer inside the App; a successful website build does not
|
|
109
|
+
establish binary-resource or WebAssembly support. Keep transport and resource
|
|
110
|
+
loading in explicit injected adapters or declared renderer dependencies.
|
|
@@ -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
|
|
|
@@ -13,6 +13,12 @@ The adaptations preserve project-owned token values and styles, public APIs,
|
|
|
13
13
|
component/pattern ownership, and application responsibility for document-level
|
|
14
14
|
setup. They do not impose upstream numeric/brand defaults or native app tooling.
|
|
15
15
|
|
|
16
|
+
The design-intent, information hierarchy, interface wording, and visual critique
|
|
17
|
+
guidance also draws on ideas in
|
|
18
|
+
[Anthropic's frontend-design skill](https://github.com/anthropics/skills/blob/main/skills/frontend-design/SKILL.md).
|
|
19
|
+
This ADS-specific guidance follows the project's shared tokens, ownership
|
|
20
|
+
boundaries, and design brief.
|
|
21
|
+
|
|
16
22
|
[LICENSE.upstream](LICENSE.upstream) retains the complete MIT license and
|
|
17
23
|
Copyright (c) 2026 Emil Kowalski for copied/adapted upstream guidance. Retain it
|
|
18
24
|
on redistribution of that material. It does not declare a license for unrelated
|
|
@@ -3,6 +3,9 @@ name: ads-designer
|
|
|
3
3
|
description: Bootstrap an empty local React design system from bundled scaffolding, or build UI using a project's existing design system. Covers shared token contracts, local ownership, public APIs, external source integration, showcase inspection, and validation.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
For Node/Bun setup, MCP launch and compiler workers, read
|
|
7
|
+
[runtimes.md](references/runtimes.md).
|
|
8
|
+
|
|
6
9
|
Inspect the target before editing. Read its `README.md`, `docs/ARCHITECTURE.md`
|
|
7
10
|
and `docs/ADS.md` when present (or existing project guides), public exports, and relevant
|
|
8
11
|
component guides. Preserve its
|
|
@@ -81,7 +84,7 @@ ADS gates. For binary/large assets, generate `git diff --binary --full-index` in
|
|
|
81
84
|
stay out of model context. Binary changes require Git. When editing is disabled,
|
|
82
85
|
use the client's normal source-editing tools.
|
|
83
86
|
For owner drafts, token-sample reconciliation, coupled transactions and local
|
|
84
|
-
|
|
87
|
+
shared Data ownership, read [guarded-editing.md](references/guarded-editing.md).
|
|
85
88
|
For on-demand current/candidate screenshots and visual dry-run review, read
|
|
86
89
|
[captures.md](references/captures.md).
|
|
87
90
|
For a rejected patch, failed check or loading error, read
|
|
@@ -98,8 +101,9 @@ renderers, build aliases or `review-import` / `review-contract` diagnostics, rea
|
|
|
98
101
|
|
|
99
102
|
A component provides one cohesive UI capability; a pattern arranges capabilities
|
|
100
103
|
into reusable structures or workflows. Components may compose components/controllers;
|
|
101
|
-
layout patterns may arrange slots. Do not classify by component count. For
|
|
102
|
-
|
|
104
|
+
layout patterns may arrange slots. Do not classify by component count. For shared
|
|
105
|
+
website/MCP App use, owner selection, or `component-dependency`,
|
|
106
|
+
`component-contract` or `component-style` diagnostics, read
|
|
103
107
|
[layer responsibilities and contracts](references/layers.md), also served as
|
|
104
108
|
`ads://guides/layers`. Preserve public APIs and documented non-state styling hooks.
|
|
105
109
|
|
|
@@ -124,11 +128,11 @@ pattern; reusable controllers use discovered `controllers/<Name>` units. Use the
|
|
|
124
128
|
project's configured framework and declared dependencies, or plain TypeScript,
|
|
125
129
|
browser APIs and local helpers. MCP hosts supply no ad hoc runtime APIs. The
|
|
126
130
|
framework setting selects compilation/mounting; controller checks also validate
|
|
127
|
-
imports. For controller/behavior work, read
|
|
128
|
-
|
|
131
|
+
imports. For controller/behavior work, read
|
|
132
|
+
[behaviors.md](references/behaviors.md), also served as `ads://guides/behaviors`. Discover registered guarantees
|
|
129
133
|
with `ads_behaviors`; use `ads_verify` for selected real checks. Optional
|
|
130
134
|
`exercises` links public behavioral APIs to scenarios; keep `covers` for rendered
|
|
131
|
-
UI. Registration and demonstration are not passing evidence.
|
|
135
|
+
UI. Registration and demonstration are not passing evidence. `<Owner>.ads.contract.ts`,
|
|
132
136
|
scenarios, fixtures and checks stay out of production exports/imports. Verify
|
|
133
137
|
current results, including lifecycle setup/cleanup/setup and the actual browser
|
|
134
138
|
profile when promised. React StrictMode needs a development harness; wrapping a
|
|
@@ -275,9 +279,10 @@ artwork replacement and token-value adoption are explicit selections.
|
|
|
275
279
|
|
|
276
280
|
## Design craft and mobile behavior
|
|
277
281
|
|
|
278
|
-
For
|
|
279
|
-
|
|
280
|
-
|
|
282
|
+
For design direction, content/layout decisions, interface wording, component
|
|
283
|
+
polish, or visual review, read
|
|
284
|
+
[references/design-craft.md](references/design-craft.md). For touch, small
|
|
285
|
+
screens, browser chrome, safe areas, or mobile forms, read
|
|
281
286
|
[references/mobile.md](references/mobile.md). Load these when relevant rather
|
|
282
287
|
than imposing mobile application setup on every component task.
|
|
283
288
|
|
|
@@ -317,26 +322,27 @@ The host shows errors and marks retained output as stale. Other hosts may need a
|
|
|
317
322
|
explicit preview-tool invocation. Compilation remains project-owned and required
|
|
318
323
|
for TSX/Linaria; it is automatic, not eliminated.
|
|
319
324
|
|
|
320
|
-
Reusable review layouts belong in
|
|
325
|
+
Reusable review layouts belong in development-only `review/`, exported through
|
|
326
|
+
the separate review entry, while scenario
|
|
321
327
|
files define no CSS, custom classes or widget replicas. Keep real presentation in
|
|
322
328
|
its component/pattern owner. The tooling shell's CSS is outside that project
|
|
323
329
|
contract. Legacy custom showcase pages may be retained during migration; new
|
|
324
330
|
projects require no TokensPage/ComponentsPage/PatternsPage/CompositionPage files.
|
|
325
331
|
|
|
326
|
-
Colocate
|
|
327
|
-
|
|
328
|
-
|
|
332
|
+
Colocate `<Owner>.ads.scenario.tsx` and `<Owner>.ads.fixture.ts` with tokens and
|
|
333
|
+
each component/pattern. Put larger entries under `composition/<Name>/` with their
|
|
334
|
+
own marked scenario and fixture. Export a default
|
|
329
335
|
zero-input mountable view and literal metadata, for example
|
|
330
336
|
`export const scenario = { title: "Button states", covers: ["Button"] };`.
|
|
331
337
|
Import the real UI from the public ADS alias. Keep fixture inputs, simulated
|
|
332
338
|
services and initial state/callback adapters beside the scenario. Empty fixtures
|
|
333
339
|
are valid for an entry with no inputs. Extra development helpers use a
|
|
334
|
-
|
|
340
|
+
`<Owner>.ads.helpers.ts` file, so guards
|
|
335
341
|
recognize their role even beside runtime code. Never require a page, router or store to
|
|
336
342
|
initialize the entry. Several contextual public parts may share one scenario.
|
|
337
343
|
|
|
338
|
-
IDs derive from ADS-relative filenames: both `components/core/Button/
|
|
339
|
-
and `components/core/Button.scenario.tsx` identify `components/core/Button`.
|
|
344
|
+
IDs derive from ADS-relative filenames: both `components/core/Button/Button.ads.scenario.tsx`
|
|
345
|
+
and `components/core/Button.ads.scenario.tsx` identify `components/core/Button`.
|
|
340
346
|
Use one form, no duplicate IDs or hand-maintained registry. Renames change IDs.
|
|
341
347
|
The showcase and external hosts mount the same discovered entry. The Vite
|
|
342
348
|
adapter uses `previewEntriesPlugin` and `createPreviewResources` with
|
|
@@ -466,11 +472,11 @@ must be implemented/exported in its owning ADS layer, then imported through the
|
|
|
466
472
|
public API. Never finish a mock with a separately styled component replica.
|
|
467
473
|
The outer shell, navigation and theme controls belong to the tool client.
|
|
468
474
|
Scenario labels and sample layouts use known public ADS entities with defined
|
|
469
|
-
APIs, owned by
|
|
475
|
+
APIs, owned by development-only `review/`. Keep review layouts minimal so they do not
|
|
470
476
|
influence the product design. Showcase/scenario
|
|
471
477
|
files define no CSS, custom class names, inline styling, or widget markup.
|
|
472
478
|
Use semantic fixture content and public entities; a missing frame/layout is an
|
|
473
|
-
explicit
|
|
479
|
+
explicit review-layer change. Component appearance, states, sizing policy,
|
|
474
480
|
accessibility, and motion stay in the shared owner.
|
|
475
481
|
|
|
476
482
|
Update examples when creating/changing components, patterns, or token values.
|
|
@@ -498,7 +504,7 @@ component's promise/loading lifecycle API when available and settle manual
|
|
|
498
504
|
loading notifications on success and failure. Keep field errors and persistent
|
|
499
505
|
information in the relevant form, inline alert, or dialog.
|
|
500
506
|
|
|
501
|
-
Customize through
|
|
507
|
+
Customize through shared tokens, component mappings and documented variants. Stacking, gestures,
|
|
502
508
|
measured geometry, and animation belong to the component. Register applicable
|
|
503
509
|
component-local usage rules in project tooling; do not assume the empty scaffold
|
|
504
510
|
includes them or that core tooling bundles this component.
|
|
@@ -525,5 +531,14 @@ CSS/asset resolution, required setup, and local documentation links.
|
|
|
525
531
|
|
|
526
532
|
For static owner contracts, `.ads.` development roles, typed paint/binding APIs,
|
|
527
533
|
declarative parent graphs, constrained theme bindings, private visual subject roles,
|
|
528
|
-
|
|
534
|
+
shared Data ownership and guarded migration, read
|
|
529
535
|
[contracts.md](references/contracts.md) when the task touches those contracts.
|
|
536
|
+
|
|
537
|
+
For a suspected ADS defect or missing capability after targeted investigation, read
|
|
538
|
+
[reporting.md](references/reporting.md). Record actionable observations with
|
|
539
|
+
`ads_report_bug` or `ads_request_feature`; preserve valid APIs and rejected drafts.
|
|
540
|
+
|
|
541
|
+
For Data/UX/Skin boundaries, shared token reuse and private-value diagnostics, read
|
|
542
|
+
[design-data.md](references/design-data.md). Components own mappings and mechanics,
|
|
543
|
+
not independent token catalogues. Existing project font, text and spacing roles
|
|
544
|
+
take precedence over divergent upstream constants during adaptation.
|
|
@@ -34,18 +34,16 @@ Keep public exports in `design-system/index.ts`; consumers use its `@ds` alias.
|
|
|
34
34
|
Use semantic CSS tokens for visual values. Raw values belong in the token files.
|
|
35
35
|
Projects sharing this ADS use the same token names, meanings, and value types;
|
|
36
36
|
their concrete values and theme overrides can differ. Reuse existing local values
|
|
37
|
-
when importing components/patterns
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
`--ds-*`, patterns `--ux-*`, and the showcase `--showcase-*`; token files cannot
|
|
48
|
-
assign those local variables or override component state.
|
|
37
|
+
when importing components/patterns. Existing font, text, spacing and other roles
|
|
38
|
+
take precedence over divergent upstream constants. Add genuinely missing shared
|
|
39
|
+
decisions, and import source token values only when adopting that theme is requested.
|
|
40
|
+
Shared token names and prefixes follow the ADS contract. All design values live
|
|
41
|
+
in the shared foundation; reuse meaningful project roles before adding new ones.
|
|
42
|
+
Components own `--ds-*` mappings and runtime mechanics, patterns own `--ux-*`, and
|
|
43
|
+
the showcase owns `--showcase-*`. These variables consume shared Data; they do
|
|
44
|
+
not create independent token catalogues. Private value sheets and namespace
|
|
45
|
+
registrations are not supported. Shared token files cannot assign runtime state
|
|
46
|
+
variables. Every shared token needs a real sample in a shared token scenario.
|
|
49
47
|
|
|
50
48
|
Foundation roles are enforced by `foundation-role`, `foundation-selector` and
|
|
51
49
|
`foundation-import`, alongside the regular token checks. Shared definitions
|
|
@@ -107,7 +105,7 @@ The shell owns section tabs, collapsible navigation, theme controls and the App
|
|
|
107
105
|
slot. Components, patterns, token values, scenarios, fixtures and their Linaria
|
|
108
106
|
styles remain project-owned. Only the sandboxed App loads and applies project
|
|
109
107
|
runtime, CSS and fonts, through MCP resources. App presentation comes from the
|
|
110
|
-
selected compiled scenario; reusable review layouts live in public
|
|
108
|
+
selected compiled scenario; reusable review layouts live in development-only `review/` through its separate public entry. Do not recreate
|
|
111
109
|
production widgets inside the client or scenario.
|
|
112
110
|
|
|
113
111
|
There are four sections: Tokens, Components, Patterns and Composition. There are
|
|
@@ -129,25 +127,25 @@ Colocate development entries and fixture inputs:
|
|
|
129
127
|
design-system/
|
|
130
128
|
tokens/
|
|
131
129
|
typography.css
|
|
132
|
-
Typography.scenario.tsx
|
|
133
|
-
Typography.fixture.ts
|
|
130
|
+
Typography.ads.scenario.tsx
|
|
131
|
+
Typography.ads.fixture.ts
|
|
134
132
|
components/core/Button/
|
|
135
133
|
Button.tsx
|
|
136
|
-
|
|
137
|
-
fixture.ts
|
|
134
|
+
Button.ads.scenario.tsx
|
|
135
|
+
Button.ads.fixture.ts
|
|
138
136
|
patterns/Editor/
|
|
139
137
|
Editor.tsx
|
|
140
|
-
|
|
141
|
-
fixture.ts
|
|
138
|
+
Editor.ads.scenario.tsx
|
|
139
|
+
Editor.ads.fixture.ts
|
|
142
140
|
composition/Workspace/
|
|
143
|
-
|
|
144
|
-
fixture.ts
|
|
141
|
+
Workspace.ads.scenario.tsx
|
|
142
|
+
Workspace.ads.fixture.ts
|
|
145
143
|
showcase/mcp/ Project compiler adapter
|
|
146
144
|
main.tsx
|
|
147
145
|
```
|
|
148
146
|
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
Use `<Owner>.ads.scenario.tsx` and `<Owner>.ads.fixture.ts` for new entries.
|
|
148
|
+
The scenario exports a default independently mountable view and literal metadata
|
|
151
149
|
`export const scenario = { title: "Button states", covers: ["Button"] };`.
|
|
152
150
|
Token entries under the configured token directory declare
|
|
153
151
|
`export const scenario = { title: fixture.title, covers: ["TokenSamples"], samples: fixture.samples };`.
|
|
@@ -155,7 +153,7 @@ Token entries under the configured token directory declare
|
|
|
155
153
|
Its colocated fixture declares literal `samples: [{ token, property, probe }]`.
|
|
156
154
|
Each token must exist and have sample coverage; duplicate bindings, missing probes,
|
|
157
155
|
empty covers and value-only inspectors fail. The default entry passes the declared
|
|
158
|
-
samples to a rendered public
|
|
156
|
+
samples to a rendered public review renderer's `samples` prop. No token-name/property mapping
|
|
159
157
|
or sample values are embedded in the tool. Display values come from foundation CSS;
|
|
160
158
|
probes are isolated verification inputs owned by the fixture.
|
|
161
159
|
|
|
@@ -173,12 +171,12 @@ mandatory caller inputs or prior page initialization. Related parts may share a
|
|
|
173
171
|
scenario containing their required public parent. Larger composition scenarios
|
|
174
172
|
reuse production screen patterns; that screen reuse remains skill guidance.
|
|
175
173
|
|
|
176
|
-
IDs derive from the ADS-relative path: `components/core/Button/
|
|
177
|
-
`components/core/Button.scenario.tsx` both identify `components/core/Button`.
|
|
174
|
+
IDs derive from the ADS-relative path: `components/core/Button/Button.ads.scenario.tsx` and
|
|
175
|
+
`components/core/Button.ads.scenario.tsx` both identify `components/core/Button`.
|
|
178
176
|
Use one form per owner. Renaming moves the ID. No manually assigned ID or parallel
|
|
179
|
-
registry is maintained.
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
registry is maintained. New fixture files use `<Owner>.ads.fixture.ts`; extra development
|
|
178
|
+
adapters use `<Owner>.ads.helpers.ts`. An empty fixture is valid without inputs.
|
|
179
|
+
Keep all `.ads.` files outside production imports and exports.
|
|
182
180
|
|
|
183
181
|
`scenario-contract`, `scenario-render` and `scenario-coverage` checks require valid
|
|
184
182
|
entries and reachable public render references for every public renderable
|
|
@@ -189,7 +187,7 @@ mounting, correct props, every branch/state or visual parity. The older
|
|
|
189
187
|
|
|
190
188
|
`token-scenario-reference` rejects undeclared token names in metadata and reachable
|
|
191
189
|
inputs. `token-scenario-render` rejects claimed tokens with no reachable input
|
|
192
|
-
reference; `token-scenario-coverage` requires every discovered shared
|
|
190
|
+
reference; `token-scenario-coverage` requires every discovered shared token
|
|
193
191
|
to have coverage. A new or removed token therefore needs a scenario/fixture
|
|
194
192
|
update. All three are errors in `ads check`, run by `lint:ds` and the build.
|
|
195
193
|
Coverage is static reachability, not proof that every branch actually renders
|
|
@@ -12,8 +12,8 @@ Read the local [contract](ADS.md) and the
|
|
|
12
12
|
|
|
13
13
|
Copy the contents of `bootstrap-ds/`, including dotfiles, into a new project.
|
|
14
14
|
The installed `ads-designer` skill contains the same files in
|
|
15
|
-
`assets/bootstrap-ds/`. Set the project name in `package.json`. Use Node 22.12
|
|
16
|
-
|
|
15
|
+
`assets/bootstrap-ds/`. Set the project name in `package.json`. Use Node 22.12+
|
|
16
|
+
or Bun 1.3.13+ with a current ADS release.
|
|
17
17
|
|
|
18
18
|
```sh
|
|
19
19
|
npx @reqvire-org/ads init --framework react
|
|
@@ -32,10 +32,12 @@ npm run build
|
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
For a new Bun workspace, declare Bun in `packageManager`, omit the copied npm
|
|
35
|
-
lockfile and translate nested npm scripts to `bun run`.
|
|
35
|
+
lockfile and translate nested npm scripts to `bun --bun run`. Initialize with
|
|
36
|
+
`bunx --bun @reqvire-org/ads init`. Init detects existing
|
|
36
37
|
Bun projects and preserves their scripts/lockfiles. Use `bun install` and
|
|
37
|
-
`bun run build`/`bun run dev:showcase`.
|
|
38
|
-
|
|
38
|
+
`bun --bun run build`/`bun --bun run dev:showcase`. Node is unnecessary with Bun
|
|
39
|
+
1.3.13+. The supplied preview watcher's `command: "runtime"` inherits the
|
|
40
|
+
interpreter that launched ADS and runs the project's installed checks.
|
|
39
41
|
|
|
40
42
|
For an existing application, merge only the ADS source and required extraction,
|
|
41
43
|
aliases and preview adapter. Preserve its framework, entry points and build.
|
|
@@ -58,18 +60,18 @@ files, and no separate project browser app to implement or rebuild.
|
|
|
58
60
|
|
|
59
61
|
The existing `tokens/Foundation.ads.scenario.tsx` and colocated fixture visually demonstrate all
|
|
60
62
|
starter token values. The fixture owns `{ token, property, probe }` bindings;
|
|
61
|
-
the
|
|
63
|
+
the development-only `TokenPreview` renderer, exported through `@ds/review`, owns their presentation and applies the real CSS
|
|
62
64
|
variables. Add/remove samples alongside token definitions. `ads check` rejects
|
|
63
65
|
missing coverage and invented names; the App verifies the declared CSS bindings
|
|
64
|
-
in the browser. Extend or replace the project-owned
|
|
66
|
+
in the browser. Extend or replace the project-owned review renderer as your tokens evolve.
|
|
65
67
|
`ads_prepare_token_samples` can prepare a fixture patch from explicit project
|
|
66
68
|
property/probe bindings. It preserves existing samples and reports unmapped tokens;
|
|
67
|
-
it does not guess how a new value should look.
|
|
68
|
-
|
|
69
|
+
it does not guess how a new value should look. Design values belong in the shared
|
|
70
|
+
foundation. Component/pattern variables map shared roles; they do not define
|
|
71
|
+
independent token catalogues. See [ADS.md](ADS.md).
|
|
69
72
|
|
|
70
73
|
Create a component under `design-system/components/`, export it through `@ds`,
|
|
71
|
-
and colocate
|
|
72
|
-
`<Owner>.fixture.ts`). Reusable compositions belong under `patterns/`; larger
|
|
74
|
+
and colocate `<Owner>.ads.scenario.tsx` plus `<Owner>.ads.fixture.ts`. Reusable compositions belong under `patterns/`; larger
|
|
73
75
|
scenarios live under `composition/`. Each entry mounts independently with its
|
|
74
76
|
fixture inputs and state/callback adapter. Use public ADS APIs and owned Linaria
|
|
75
77
|
styles, keeping business data/services in the application.
|
|
@@ -4,9 +4,10 @@ Keep original logos, app icons, and artwork variants here. This starter contains
|
|
|
4
4
|
no artwork. Record each asset's purpose, suitable backgrounds, usage, source
|
|
5
5
|
credits, and applicable licenses when adding it.
|
|
6
6
|
|
|
7
|
-
UI branding uses the
|
|
7
|
+
UI branding uses the project-owned shared roles in `tokens/`: change values such as
|
|
8
8
|
`--accent`, `--font-sans`, and `--radius-md`. Components own `--ds-*` variables;
|
|
9
|
-
patterns own `--ux-*`; the showcase owns
|
|
9
|
+
patterns and development review helpers own `--ux-*`; the showcase owns
|
|
10
|
+
`--showcase-*`. Do not introduce a
|
|
10
11
|
brand-prefixed token vocabulary or override component state variables.
|
|
11
12
|
|
|
12
13
|
Put licensed font files in `assets/fonts/` and their declarations in
|
|
@@ -17,7 +17,7 @@ await runScenarioCompiler(root, {
|
|
|
17
17
|
watched: process.argv.includes("--watch"),
|
|
18
18
|
compilerFiles: [import.meta.filename],
|
|
19
19
|
async validate() {
|
|
20
|
-
try { await runScript(manager, ["run", "lint"], { cwd: root }); }
|
|
20
|
+
try { await runScript(manager, [...(manager === "bun" ? ["--bun"] : []), "run", "lint"], { cwd: root }); }
|
|
21
21
|
catch (error) { throw new Error([error.stdout, error.stderr].map(value => value?.toString() ?? "").join("\n") || error.message); }
|
|
22
22
|
},
|
|
23
23
|
async buildGraph(entries, options, track) {
|