@reqvire-org/ads 0.3.27 → 0.3.28
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/dist/bootstrap-ds/scripts/build-mcp-previews.mjs +6 -7
- package/dist/mcp/preview-widget.bundle.js +6 -6
- package/dist/mcp/project-widget.bundle.js +13 -13
- package/dist/mcp/resource-loader.js +10 -1
- package/dist/mcp/server.mjs +7 -3
- package/dist/preview-builder.mjs +108 -0
- package/dist/preview-inputs.mjs +8 -1
- package/dist/scenario-groups.mjs +47 -0
- package/dist/scenarios-compiler.mjs +4 -3
- package/dist/scenarios-vite.mjs +13 -5
- package/dist/scenarios.mjs +4 -1
- package/dist/showcase/client.bundle.js +21 -21
- package/dist/showcase/navigation.js +13 -0
- package/dist/showcase/style.css +1 -0
- package/dist/skills/ads-break-ui/SKILL.md +1 -1
- package/dist/skills/ads-break-ui/references/runtimes.md +17 -0
- package/dist/skills/ads-break-ui/references/scenarios.md +19 -0
- package/dist/skills/ads-designer/SKILL.md +1 -1
- package/dist/skills/ads-designer/assets/bootstrap-ds/scripts/build-mcp-previews.mjs +6 -7
- package/dist/skills/ads-designer/references/runtimes.md +17 -0
- package/dist/skills/ads-designer/references/scenarios.md +19 -0
- package/dist/skills/ads-import/SKILL.md +1 -1
- package/dist/skills/ads-import/references/runtimes.md +17 -0
- package/dist/skills/ads-import/references/scenarios.md +19 -0
- package/dist/skills/ads-motion/SKILL.md +1 -1
- package/dist/skills/ads-motion/references/runtimes.md +17 -0
- package/dist/skills/ads-motion/references/scenarios.md +19 -0
- package/dist/skills/ads-port/SKILL.md +1 -1
- package/dist/skills/ads-port/references/runtimes.md +17 -0
- package/dist/skills/ads-port/references/scenarios.md +19 -0
- package/docs/ADS.md +12 -2
- package/docs/ARCHITECTURE.md +66 -3
- package/docs/BEHAVIORS.md +7 -0
- package/docs/CHANGELOG.md +17 -0
- package/docs/GUIDE.md +31 -0
- package/docs/MCP.md +60 -8
- package/package.json +1 -1
package/docs/MCP.md
CHANGED
|
@@ -204,7 +204,7 @@ The server supplies agent guidance through its instructions, tool descriptions,
|
|
|
204
204
|
| `ads_skills` | Workflow names/descriptions without loading instructions |
|
|
205
205
|
| `ads_read_skill` | Explicit text instruction/support-file reads in bounded chunks |
|
|
206
206
|
| `ads_show_tokens` | Render a discovered token scenario; legacy compilers retain the definition inspector |
|
|
207
|
-
| `ads_scenarios` | Bounded
|
|
207
|
+
| `ads_scenarios` | Bounded scenario discovery, including folder-derived groups searchable with `query` |
|
|
208
208
|
| `ads_show_scenario` | Render an exact discovered scenario with its own fixtures |
|
|
209
209
|
| `ads_behaviors` | Paged owner discovery; select a unit and detail section |
|
|
210
210
|
| `ads_verify` | Execute an owner's registered checks and record revision-bound evidence |
|
|
@@ -220,6 +220,15 @@ The server supplies agent guidance through its instructions, tool descriptions,
|
|
|
220
220
|
| `ads_read_file` | Read bounded source ranges, with owning unit and full-file digest |
|
|
221
221
|
| `ads_apply_patch` | Opt-in Git unified diff for one ADS unit, with dry-run validation |
|
|
222
222
|
|
|
223
|
+
Scenario results include `group` only when folder structure supplies one. It is
|
|
224
|
+
computed output, never scenario metadata. `ads_scenarios({query: "Forms"})` searches
|
|
225
|
+
the derived group label; `kind`, `offset` and `limit` continue to work. The full
|
|
226
|
+
`ads://project/scenarios` resource carries the same registry. Pass exact returned
|
|
227
|
+
IDs to `ads_show_scenario`; `ads_catalog.previews`, `ads_units` and source resources
|
|
228
|
+
retain the actual nested paths. A folder group is navigation, not an edit owner.
|
|
229
|
+
See [folder rules](GUIDE.md) and the
|
|
230
|
+
[architecture](ARCHITECTURE.md#folder-derived-navigation).
|
|
231
|
+
|
|
223
232
|
Listings have bounded pages and opaque cursors. The source catalogue exposes
|
|
224
233
|
public exports from `components/`, `patterns/` and `controllers/`; it does not execute TSX to
|
|
225
234
|
guess component props. Read the exported API and owning guide. An export name
|
|
@@ -744,15 +753,28 @@ framework compilation and Linaria extraction. The starter's
|
|
|
744
753
|
|
|
745
754
|
- `runScenarioCompiler()` from `@reqvire-org/ads/scenarios/compiler` handles
|
|
746
755
|
scheduling, validation, source freshness, successful caches and build reporting.
|
|
747
|
-
-
|
|
748
|
-
|
|
749
|
-
|
|
756
|
+
- `createVitePreviewBuilder({ build, configure })` from
|
|
757
|
+
`@reqvire-org/ads/scenarios/vite` supplies `buildGraph`. `build` is the project's
|
|
758
|
+
Vite build function; `configure(entries, options)` returns its Vite configuration
|
|
759
|
+
with `previewEntriesPlugin()` and the project's framework/Linaria plugins.
|
|
760
|
+
It keeps one Rollup watch graph in managed development, retaining unaffected
|
|
761
|
+
module transforms. A changed entry list or project configuration resets the graph.
|
|
762
|
+
Normal non-watch builds remain one-shot and in memory.
|
|
750
763
|
Each mount imports the project's shared foundation entry. Keep that import in
|
|
751
764
|
the preview module graph so independently built token scenarios receive the
|
|
752
765
|
same shared Data as production UI.
|
|
753
766
|
- Keep `preserveEntrySignatures: "strict"`, `cssCodeSplit: true`,
|
|
754
|
-
`assetsInlineLimit: 0`, `modulePreload: false`, and `write: false
|
|
755
|
-
|
|
767
|
+
`assetsInlineLimit: 0`, `modulePreload: false`, and `write: false` in the returned
|
|
768
|
+
configuration. The helper captures watched output in private `.ds/incremental/`
|
|
769
|
+
scratch files; this is not the published graph. It removes its scratch directory
|
|
770
|
+
and closes its watcher when the compiler stops.
|
|
771
|
+
Watched builds use one module output (no output array or `output.file`). Under
|
|
772
|
+
Bun, dependency watches use polling to recover rapid native watch reattachments;
|
|
773
|
+
project `build.watch.chokidar` options can override this choice.
|
|
774
|
+
- Existing custom `buildGraph(entries, options, track)` adapters still work. The
|
|
775
|
+
optional fourth argument supplies `{ watched }`; custom adapters must include
|
|
776
|
+
the supplied dependency-tracking plugin and may expose an async `.close()`.
|
|
777
|
+
Adopt the helper explicitly to gain persistent Vite compilation.
|
|
756
778
|
- Use `linariaTagResolver` from `@reqvire-org/ads/linaria` in WyW's `tagResolver`
|
|
757
779
|
option in both the product build and preview builder. It preserves opaque
|
|
758
780
|
custom-property values through atomic extraction, including whitespace needed
|
|
@@ -763,13 +785,43 @@ framework compilation and Linaria extraction. The starter's
|
|
|
763
785
|
an unmount callback. It imports the same project foundation used in production.
|
|
764
786
|
It creates no App bridge; ADS supplies that bridge once.
|
|
765
787
|
|
|
788
|
+
To migrate an existing adapter, keep its current Vite configuration and plugins,
|
|
789
|
+
return that configuration from `configure`, and replace its fresh-build wrapper:
|
|
790
|
+
|
|
791
|
+
```js
|
|
792
|
+
import { createVitePreviewBuilder } from "@reqvire-org/ads/scenarios/vite";
|
|
793
|
+
|
|
794
|
+
await runScenarioCompiler(root, {
|
|
795
|
+
watched: process.argv.includes("--watch"),
|
|
796
|
+
validate, // retain the project's validation callback
|
|
797
|
+
compilerFiles: [import.meta.filename],
|
|
798
|
+
buildGraph: createVitePreviewBuilder({
|
|
799
|
+
build, // the project's Vite build function
|
|
800
|
+
configure(entries, options) {
|
|
801
|
+
return previewConfig(entries, options); // existing aliases, entries and plugins
|
|
802
|
+
},
|
|
803
|
+
}),
|
|
804
|
+
});
|
|
805
|
+
```
|
|
806
|
+
|
|
807
|
+
The helper adds dependency tracking and resource conversion; remove the old
|
|
808
|
+
`await build(...)` / `createPreviewResources(...)` wrapper, not its framework,
|
|
809
|
+
Linaria, shared foundation or validation configuration. Upgrade the project ADS
|
|
810
|
+
dependency and restart its managed compiler to load the helper. Merely upgrading
|
|
811
|
+
the server does not convert a custom project adapter to incremental compilation.
|
|
812
|
+
|
|
766
813
|
On first demand, the adapter builds a shared graph for all registered scenarios.
|
|
767
814
|
A selection loads only its static dependency closure. Validation and compilation
|
|
768
815
|
run together; both must succeed before publication. `.ds/preview-cache.json`
|
|
769
816
|
reuses successful validation/output only when inputs, compiler/tool code,
|
|
770
817
|
lockfile, recorded dependencies and content digests match. A source edit
|
|
771
|
-
revalidates
|
|
772
|
-
|
|
818
|
+
revalidates the project and incrementally updates the watched module graph. Both
|
|
819
|
+
must succeed against unchanged source before atomic publication; a failed or
|
|
820
|
+
superseded build cannot become current. Files outside Rollup's graph still trigger
|
|
821
|
+
validation and a reconciled build. Preview refresh retains the selected view's
|
|
822
|
+
state when its complete static module/style/asset closure is unchanged, while
|
|
823
|
+
rerunning its token/paint audits against the new manifest. Actual selected-view
|
|
824
|
+
changes remount it. Normal application builds retain their own chunking and optimization.
|
|
773
825
|
|
|
774
826
|
The graph lives beside the configured manifest, under `assets/`. Tiny
|
|
775
827
|
`.ds/scenarios/<id>/index.html` descriptors retain the reporter/registry contract;
|