@reqvire-org/ads 0.3.10 → 0.3.12

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.
Files changed (33) hide show
  1. package/dist/mcp/build-status.mjs +14 -4
  2. package/dist/mcp/catalog.mjs +3 -3
  3. package/dist/mcp/mutations.mjs +1 -1
  4. package/dist/mcp/preview-watch.mjs +7 -5
  5. package/dist/mcp/server.mjs +13 -10
  6. package/dist/preview-inputs.mjs +24 -0
  7. package/dist/project-documents.mjs +29 -6
  8. package/dist/scenarios-compiler.mjs +26 -20
  9. package/dist/showcase/client.bundle.js +17 -17
  10. package/dist/skills/ads-break-ui/SKILL.md +6 -4
  11. package/dist/skills/ads-break-ui/references/guarded-editing.md +10 -0
  12. package/dist/skills/ads-break-ui/references/scenarios.md +32 -0
  13. package/dist/skills/ads-designer/SKILL.md +6 -4
  14. package/dist/skills/ads-designer/references/guarded-editing.md +10 -0
  15. package/dist/skills/ads-designer/references/scenarios.md +32 -0
  16. package/dist/skills/ads-import/SKILL.md +6 -4
  17. package/dist/skills/ads-import/references/guarded-editing.md +10 -0
  18. package/dist/skills/ads-import/references/implementation.md +3 -1
  19. package/dist/skills/ads-import/references/scenarios.md +32 -0
  20. package/dist/skills/ads-migrate/SKILL.md +6 -4
  21. package/dist/skills/ads-migrate/references/guarded-editing.md +10 -0
  22. package/dist/skills/ads-migrate/references/scenarios.md +32 -0
  23. package/dist/skills/ads-migrate/references/testing.md +5 -0
  24. package/dist/skills/ads-motion/SKILL.md +6 -4
  25. package/dist/skills/ads-motion/references/guarded-editing.md +10 -0
  26. package/dist/skills/ads-motion/references/scenarios.md +32 -0
  27. package/dist/units.mjs +7 -6
  28. package/dist/verification.mjs +2 -2
  29. package/docs/ADS.md +4 -0
  30. package/docs/ARCHITECTURE.md +15 -4
  31. package/docs/CHANGELOG.md +24 -0
  32. package/docs/MCP.md +34 -2
  33. package/package.json +1 -1
package/docs/MCP.md CHANGED
@@ -15,6 +15,14 @@ The agent keeps its stdio connection; the browser connects to `/mcp` on the same
15
15
  runtime using HTTP and the current modern protocol. Both share the configured
16
16
  preview watcher and artifacts. Stdout remains exclusively JSON-RPC.
17
17
 
18
+ Every registered preview uses `?scenario=<discovered-id>`, including token
19
+ previews colocated under components or patterns. The client selects its section
20
+ from the scenario's discovered `kind`, never from the ID's path prefix. Existing
21
+ `?category=<id>` links remain accepted and normalize to `?scenario=`; an explicit
22
+ `scenario` parameter takes precedence when both are present. `ads_show_tokens`
23
+ keeps its `category` tool argument and returns the same canonical showcase link
24
+ as `ads_show_scenario` for that ID.
25
+
18
26
  For browser-only work, run `ads showcase` inside the project. It starts the same
19
27
  runtime without stdio. `--port 4185` selects a port; otherwise the OS chooses an
20
28
  available one. For a stable address, add `"--port", "4191"` to the server's `args`
@@ -286,10 +294,23 @@ The same discovery covers the rest of the project ADS:
286
294
  | Unit | Scope |
287
295
  |------|-------|
288
296
  | `foundation` | Shared ADS entry styles and root helpers |
289
- | `documentation` | ADS guides/licenses and the project's README, GUIDE, MCP, Architecture and ADS Markdown guides |
297
+ | `documentation` | ADS/project guides, shared credits and license notices, and `licenses/` text collections |
290
298
  | `assets/brand`, `assets/fonts`, other `assets/*` groups | Original SVG, image, font and other asset files |
291
299
  | `configuration` | `ds.config.json`, package/TypeScript/bundler/lint configuration, registered ADS guard modules, compiler/check entrypoints and their static local dependencies |
292
300
 
301
+ The `documentation` manifest includes `filePolicy` for paths that can be created
302
+ before they exist. One documentation patch can add `CREDITS.md`,
303
+ `licenses/example.txt` and the required README links together. Conventional root
304
+ `LICENSE`/`LICENCE`, `NOTICE`, `COPYING`, `COPYRIGHT` and `CREDITS` notices accept
305
+ `.md`, `.txt`, or extensionless names, with optional `-`/`_` qualifiers. Shared
306
+ `licenses/` collections may also live under `docs/`, `doc/`, or the configured ADS
307
+ root. Their entries use `.md`/`.txt` or conventional extensionless notice names.
308
+ Content must be UTF-8 without NUL bytes; Git patches preserve exact text, Unicode,
309
+ line endings and final-newline state. Code/configuration, hidden/generated paths
310
+ and peer-owned files retain their boundaries. A component's colocated notice stays
311
+ in that component unit. Shared notices are listed as readable MCP resources, while
312
+ workflow guide discovery omits provenance inventories. No asset unit is needed.
313
+
293
314
  Configuration ownership follows the project's registrations. It does not absorb
294
315
  components merely because a guard or compiler reads them. Guard registration,
295
316
  implementation, helpers and the associated check script can change together.
@@ -701,7 +722,18 @@ Tool summaries include the first three diagnostics per preview, capped at 1,000
701
722
  characters each, with counts and truncation flags; the build resource retains
702
723
  the complete bounded report.
703
724
  A watcher session separates revisions across restarts, and an artifact digest
704
- checks that the served output matches the reported successful build.
725
+ checks that the served output matches the reported successful build. Each build
726
+ captures a `sourceRevision` before compilation. Status reads compare that content
727
+ digest with current project inputs; unchanged output cannot remain current after
728
+ source changes. Such previews retain their last successful revision and output,
729
+ but report `current: false`, `stale: true` and `ADS_PREVIEW_STALE_SOURCE` while
730
+ awaiting the current build. Changes during compilation also invalidate success.
731
+
732
+ Guarded single-owner edits and transactions explicitly invalidate the managed
733
+ compiler after publication. Filesystem events provide fast updates; one-second
734
+ input reconciliation recovers missed atomic replacements without touching source
735
+ or restarting MCP. Keep the project compiler's ADS dependency and the MCP package
736
+ updated together: older reports without source evidence cannot establish freshness.
705
737
 
706
738
  On each status transition MCP sends `notifications/resources/updated` to build
707
739
  resource subscribers. Legacy connections use `resources/subscribe`; modern
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reqvire-org/ads",
3
- "version": "0.3.10",
3
+ "version": "0.3.12",
4
4
  "type": "module",
5
5
  "description": "A design system your agent can see and shape. Your components. Your look. Your code.",
6
6
  "repository": {