@reqvire-org/ads 0.3.41 → 0.3.43
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 -4
- package/dist/bootstrap-ds/ADS.md +2 -1
- package/dist/bootstrap-ds/README.md +23 -14
- package/dist/bootstrap-ds/design-system/components/Actions/Button/Button.ads.fixture.ts +1 -0
- package/dist/bootstrap-ds/design-system/components/Actions/Button/Button.ads.scenario.tsx +13 -0
- package/dist/bootstrap-ds/design-system/components/Actions/Button/Button.tsx +49 -0
- package/dist/bootstrap-ds/design-system/components/Actions/Button/README.md +12 -0
- package/dist/bootstrap-ds/design-system/components/Forms/TextField/README.md +14 -0
- package/dist/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.fixture.ts +6 -0
- package/dist/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +13 -0
- package/dist/bootstrap-ds/design-system/components/Forms/TextField/TextField.tsx +57 -0
- package/dist/bootstrap-ds/design-system/composition/Search/SearchPage/README.md +4 -0
- package/dist/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +7 -0
- package/dist/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +16 -0
- package/dist/bootstrap-ds/design-system/index.ts +4 -1
- package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/README.md +12 -0
- package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +1 -0
- package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +11 -0
- package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.tsx +41 -0
- package/dist/bootstrap-ds/design-system/review/demo-frame/DemoFrame.tsx +29 -0
- package/dist/bootstrap-ds/design-system/review/index.ts +2 -0
- package/dist/bootstrap-ds/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
- package/dist/bootstrap-ds/design-system/review/token-preview/TokenPreview.tsx +107 -19
- package/dist/bootstrap-ds/design-system/tokens/Color.ads.fixture.ts +18 -0
- package/dist/bootstrap-ds/design-system/tokens/{Foundation.ads.scenario.tsx → Color.ads.scenario.tsx} +1 -1
- package/dist/{skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Foundation.ads.fixture.ts → bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.fixture.ts} +1 -13
- package/dist/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx +4 -0
- package/dist/bootstrap-ds-preact/design-system/review/demo-frame/DemoFrame.tsx +29 -0
- package/dist/bootstrap-ds-preact/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
- package/dist/bootstrap-ds-preact/design-system/review/token-preview/TokenPreview.tsx +119 -0
- package/dist/bootstrap-ds-preact/design-system/showcase/mcp/main.tsx +6 -0
- package/dist/bootstrap-ds-preact/ds.config.json +19 -0
- package/dist/bootstrap-ds-preact/package.json +38 -0
- package/dist/bootstrap-ds-preact/src/vite-env.d.ts +7 -0
- package/dist/bootstrap-ds-preact/tsconfig.json +36 -0
- package/dist/bootstrap-ds-preact/vite.config.ts +23 -0
- package/dist/bun-compiler.mjs +8 -4
- package/dist/cli.mjs +7 -4
- package/dist/init.mjs +15 -7
- package/dist/mcp/execution-results.mjs +1 -0
- package/dist/mcp/mutations.mjs +1 -1
- package/dist/mcp/server.mjs +10 -8
- package/dist/mcp/showcase-host.mjs +5 -1
- package/dist/preview-builder.mjs +8 -2
- package/dist/scenarios-compiler.mjs +28 -1
- package/dist/skills/ads-break-ui/SKILL.md +2 -2
- package/dist/skills/ads-break-ui/references/validation.md +13 -0
- package/dist/skills/ads-designer/SKILL.md +33 -19
- package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +2 -1
- package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +23 -14
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.fixture.ts +1 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.scenario.tsx +13 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.tsx +49 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/README.md +12 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/README.md +14 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.fixture.ts +6 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +13 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.tsx +57 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/README.md +4 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +7 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +16 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/index.ts +4 -1
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/README.md +12 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +1 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +11 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.tsx +41 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/demo-frame/DemoFrame.tsx +29 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/index.ts +2 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/token-preview/TokenPreview.tsx +107 -19
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Color.ads.fixture.ts +18 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/{Foundation.ads.scenario.tsx → Color.ads.scenario.tsx} +1 -1
- package/dist/{bootstrap-ds/design-system/tokens/Foundation.ads.fixture.ts → skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.fixture.ts} +1 -13
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx +4 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/demo-frame/DemoFrame.tsx +29 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/token-preview/TokenPreview.tsx +119 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/showcase/mcp/main.tsx +6 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/ds.config.json +19 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/package.json +38 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/src/vite-env.d.ts +7 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/tsconfig.json +36 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/vite.config.ts +23 -0
- package/dist/skills/ads-designer/references/cli.md +7 -2
- package/dist/skills/ads-designer/references/design-craft.md +1 -1
- package/dist/skills/ads-designer/references/validation.md +13 -0
- package/dist/skills/ads-import/SKILL.md +2 -2
- package/dist/skills/ads-import/references/cli.md +7 -2
- package/dist/skills/ads-import/references/validation.md +13 -0
- package/dist/skills/ads-motion/SKILL.md +2 -2
- package/dist/skills/ads-motion/references/validation.md +13 -0
- package/dist/skills/ads-port/SKILL.md +3 -3
- package/dist/skills/ads-port/references/cli.md +7 -2
- package/dist/skills/ads-port/references/validation.md +13 -0
- package/dist/task-cache.mjs +122 -0
- package/dist/task-worker.mjs +19 -0
- package/dist/validation-checks.mjs +7 -9
- package/dist/validation.mjs +3 -3
- package/docs/ADS.md +7 -7
- package/docs/ARCHITECTURE.md +12 -2
- package/docs/CACHING.md +99 -0
- package/docs/CHANGELOG.md +46 -12
- package/docs/GUIDE.md +16 -14
- package/docs/benchmarks/turbo-poc.md +266 -0
- package/package.json +4 -3
- package/dist/bootstrap-ds/design-system/components/.gitkeep +0 -0
- package/dist/bootstrap-ds/design-system/composition/.gitkeep +0 -0
- package/dist/bootstrap-ds/design-system/patterns/.gitkeep +0 -0
- package/dist/check-runner.mjs +0 -7
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/.gitkeep +0 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/.gitkeep +0 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/.gitkeep +0 -0
package/docs/GUIDE.md
CHANGED
|
@@ -86,8 +86,8 @@ Current source checking supports `.js`, `.jsx`, `.ts`, `.tsx`, their module
|
|
|
86
86
|
variants, `.css`, and imported Linaria `css` and `styled` templates. JSX style/type checks
|
|
87
87
|
support React and native Preact, including imported factory aliases and
|
|
88
88
|
DOM/CSS types. Scenario discovery, coverage, ownership checks and MCP delivery
|
|
89
|
-
apply to both. The empty application starter
|
|
90
|
-
example uses native Preact 11 with TypeScript and Linaria. ADS adds neither runtime
|
|
89
|
+
apply to both. The empty application starter comes for React and for Preact; this
|
|
90
|
+
checkout’s working example uses native Preact 11 with TypeScript and Linaria. ADS adds neither runtime
|
|
91
91
|
to a receiving application and never silently aliases React to Preact.
|
|
92
92
|
|
|
93
93
|
Vue/Svelte single-file components and HTML templates are not parsed by these
|
|
@@ -126,7 +126,7 @@ project's existing build:
|
|
|
126
126
|
result. Static source checks do not establish complete extraction or
|
|
127
127
|
unused-style removal.
|
|
128
128
|
|
|
129
|
-
The [
|
|
129
|
+
The [starter's dependencies](https://github.com/reqvire-org/ads/blob/main/bootstrap-ds/package.json),
|
|
130
130
|
[entry build](https://github.com/reqvire-org/ads/blob/main/bootstrap-ds/vite.config.ts),
|
|
131
131
|
and [preview compiler](https://github.com/reqvire-org/ads/blob/main/bootstrap-ds/scripts/build-mcp-previews.mjs)
|
|
132
132
|
provide the React/Vite setup. Merge the needed integration into an existing
|
|
@@ -161,17 +161,17 @@ namespace is also recognized by guards. See the [Preact upgrade guide](https://p
|
|
|
161
161
|
|
|
162
162
|
The [working example](https://github.com/reqvire-org/ads/tree/main/design-system)
|
|
163
163
|
and its [compiler adapter](https://github.com/reqvire-org/ads/blob/main/scripts/build-mcp-previews.mjs)
|
|
164
|
-
show the native setup.
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
hooks
|
|
168
|
-
the saved choice. For a Preact app without a saved framework, run
|
|
164
|
+
show the native setup. A new Preact project starts from the Preact starter:
|
|
165
|
+
`bootstrap-ds/` with `bootstrap-ds-preact/` copied over it, which replaces the
|
|
166
|
+
runtime dependencies, JSX settings, framework transform, mount adapter, token
|
|
167
|
+
preview hooks, scenario types and `framework` field together. Then run `ads init`
|
|
168
|
+
using the saved choice. For a Preact app without a saved framework, run
|
|
169
169
|
`ads init --framework preact`; newly generated foundation scenarios use native
|
|
170
170
|
hooks. Init preserves the application's compiler, dependencies and mount adapter.
|
|
171
171
|
|
|
172
172
|
### CSS correctness in the example and starter
|
|
173
173
|
|
|
174
|
-
The example and
|
|
174
|
+
The example and starter use Biome only for CSS, configured in
|
|
175
175
|
`biome.css.json`. Parsing rejects malformed CSS and invalid hex colors, including
|
|
176
176
|
token values. Explicit lint rules reject duplicate font names and selectors;
|
|
177
177
|
the starter also rejects duplicate properties. Formatting is disabled. ADS directly checks architecture, token usage and
|
|
@@ -197,12 +197,13 @@ For a Bun-managed project, use
|
|
|
197
197
|
and `bun --bun run build`. Node is unnecessary. No archive or directory argument is needed for a published
|
|
198
198
|
release. `init` requires an existing project; it does not create an application.
|
|
199
199
|
For starting from zero, the `ads-designer` skill carries a standalone empty
|
|
200
|
-
|
|
200
|
+
TypeScript/Linaria application scaffold for React (`bootstrap-ds/`) and Preact
|
|
201
|
+
(`bootstrap-ds-preact/` copied over it). Copy that first, then run `init`
|
|
201
202
|
inside it when a tool distribution is available.
|
|
202
203
|
|
|
203
204
|
Choose `--framework react` or `--framework preact` when the project has no saved
|
|
204
205
|
framework. Init persists it as `framework` in `ds.config.json`. Subsequent runs
|
|
205
|
-
reuse the saved value, and
|
|
206
|
+
reuse the saved value, and each copied starter already declares its framework.
|
|
206
207
|
There is no implicit framework detection or default for initialization.
|
|
207
208
|
|
|
208
209
|
A conflicting flag stops init before writes. Init also checks available
|
|
@@ -497,7 +498,7 @@ or direct component imports are used by this client.
|
|
|
497
498
|
|
|
498
499
|
The project owns implementations, colocated scenarios/fixtures, foundation
|
|
499
500
|
CSS and a framework mount adapter. ADS supplies its native Bun preview compiler.
|
|
500
|
-
The
|
|
501
|
+
The starter and init provide the mount under `design-system/showcase/mcp/`.
|
|
501
502
|
Configure the framework and preview manifest; no Vite preview script is required:
|
|
502
503
|
|
|
503
504
|
```json
|
|
@@ -573,8 +574,9 @@ are collapsible and sorted alphabetically within each layer. Existing flat
|
|
|
573
574
|
projects continue to work without moving files. Tokens retain their categories.
|
|
574
575
|
|
|
575
576
|
Token scenarios live beside foundation CSS under the configured token directory.
|
|
576
|
-
The starter
|
|
577
|
-
|
|
577
|
+
The starter groups its tokens in `tokens/Color.ads.scenario.tsx` and
|
|
578
|
+
`tokens/SpaceTypeMotion.ads.scenario.tsx`, each with its local fixture, for a
|
|
579
|
+
project-owned token review renderer. Keep its presentation in development-only `review/`:
|
|
578
580
|
|
|
579
581
|
```tsx
|
|
580
582
|
import { TokenSamples } from "@ds/review";
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
# Turborepo POC: immutable batch tasks
|
|
2
|
+
|
|
3
|
+
Measured locally on 26 October 2026 with ADS 0.3.41, Turbo 2.11.10,
|
|
4
|
+
Bun 1.4.1 and Node 24.13.0 on Linux x64. This is an isolated experiment;
|
|
5
|
+
production ADS, project dependencies, policies, MCP locks and CI were not changed.
|
|
6
|
+
|
|
7
|
+
## Workload and controls
|
|
8
|
+
|
|
9
|
+
The input is a frozen Neezler snapshot: 885 inventoried validation files,
|
|
10
|
+
5,622,703 bytes, plus copied workspace/generated inputs. Inventoried source digest:
|
|
11
|
+
`4666c8a12353d4f60e1cd7828f8ce44a414b802b5dfdde9c18394429346ad9d6`.
|
|
12
|
+
Local workspace imports resolve to the snapshot, not the live terminal-renderer
|
|
13
|
+
checkout. Installed third-party dependencies are shared read-only. The live
|
|
14
|
+
project was used only for reading/preparing this snapshot.
|
|
15
|
+
|
|
16
|
+
Each pipeline executes the same three commands through a small report wrapper:
|
|
17
|
+
|
|
18
|
+
- ADS architecture/source check, capturing its JSON report.
|
|
19
|
+
- The project's complete `tsc --noEmit` typecheck.
|
|
20
|
+
- ADS native Bun preview compilation: **129 scenarios, 318 immutable assets**.
|
|
21
|
+
|
|
22
|
+
Preview compilation still performs its own mandatory ADS checks. This POC does
|
|
23
|
+
not remove that existing duplication. Both direct and Turbo variants perform the
|
|
24
|
+
same work. Direct warm compilation uses ADS's existing persisted preview cache;
|
|
25
|
+
it is not forced to compile again for an artificial comparison.
|
|
26
|
+
|
|
27
|
+
Turbo runs in single-package mode with local caching only and a two-task limit.
|
|
28
|
+
Inputs conservatively include the entire frozen source, lockfile, configuration,
|
|
29
|
+
task wrapper and recorded toolchain. Task outputs contain reports and the compiled
|
|
30
|
+
preview graph/cache. Live build-status files, locks, run journals, acceptance
|
|
31
|
+
baselines and verification outcomes are excluded. No remote service or CI is used.
|
|
32
|
+
|
|
33
|
+
Cold means empty ADS/Turbo build caches, not an empty operating-system disk cache.
|
|
34
|
+
Cold/edit comparisons have one trial per mode; unchanged warm comparisons have
|
|
35
|
+
three. Tests are local observations, not service limits or statistical guarantees.
|
|
36
|
+
|
|
37
|
+
## Results
|
|
38
|
+
|
|
39
|
+
| Workload | Direct sequential | Turbo, two tasks |
|
|
40
|
+
| --- | ---: | ---: |
|
|
41
|
+
| Cold complete pipeline | 18.737 s | 11.645 s |
|
|
42
|
+
| Unchanged pipeline, median of three | 11.059 s | 0.070 s |
|
|
43
|
+
| Component source edit | 17.773 s | 11.228 s |
|
|
44
|
+
| Shared token edit | 17.671 s | 11.257 s |
|
|
45
|
+
|
|
46
|
+
The three unchanged Turbo runs took 81, 70 and 69 ms, executing **zero tasks**.
|
|
47
|
+
Direct unchanged preview compilation alone took 1.585, 1.710 and 1.541 seconds;
|
|
48
|
+
the remaining direct time was the source check and typecheck. Warm runs are much
|
|
49
|
+
faster because Turbo skips matching task execution, not because it compiles faster.
|
|
50
|
+
|
|
51
|
+
A scheduling control separates that cache benefit from ordinary parallelism:
|
|
52
|
+
|
|
53
|
+
| Cold scheduling control | Time | Sampled peak process-tree PSS |
|
|
54
|
+
| --- | ---: | ---: |
|
|
55
|
+
| Direct, sequential | 18.737 s | 1,937 MiB |
|
|
56
|
+
| Turbo, sequential | 18.512 s | 1,790 MiB |
|
|
57
|
+
| Direct, simple two-worker queue | 11.428 s | 2,815 MiB |
|
|
58
|
+
| Turbo, two tasks | 11.645 s | 2,842 MiB |
|
|
59
|
+
|
|
60
|
+
Cold timing differences between equivalent scheduling modes are small and within
|
|
61
|
+
normal local variation. A simple two-worker queue provides essentially the same
|
|
62
|
+
cold improvement. Turbo's demonstrated additional value is the task artifact
|
|
63
|
+
cache, not uniquely faster scheduling.
|
|
64
|
+
|
|
65
|
+
Memory is sampled through `/proc/*/smaps_rollup` every 150 ms; fast cache hits can
|
|
66
|
+
end between samples, so their memory values should not be interpreted as precise
|
|
67
|
+
peaks. Every benchmark phase ran inside a 6 GiB process-tree cgroup with swap
|
|
68
|
+
disabled. The first run's whole cgroup peaked around 3 GiB, including monitoring,
|
|
69
|
+
file-backed memory and other overhead beyond summed process PSS.
|
|
70
|
+
|
|
71
|
+
## Correctness and concurrency checks
|
|
72
|
+
|
|
73
|
+
- Deleted all Turbo-variant report outputs and its entire `.ds/` directory.
|
|
74
|
+
Turbo restored the artifacts in **82 ms**, with zero tasks executed. ADS's
|
|
75
|
+
manifest/asset integrity reader verified all graph links, sizes and byte digests;
|
|
76
|
+
the preview revision matched the pre-deletion revision.
|
|
77
|
+
- Changed Badge's real default tone, then a shared `--accent` token. Each change
|
|
78
|
+
caused all three conservative whole-snapshot tasks to miss cache and execute.
|
|
79
|
+
The preview graph revision changed. Repeating each edited pipeline hit cache.
|
|
80
|
+
- Introduced an actual TypeScript assignment error. Both attempts failed and
|
|
81
|
+
executed the typechecker; a failed task was not reused as a successful result.
|
|
82
|
+
- Started two separate Turbo invocations for the same cold source-check key.
|
|
83
|
+
Both missed cache and **two source checks executed**, taking about 7.5 seconds
|
|
84
|
+
each. Turbo did not combine the requests into one in-flight computation.
|
|
85
|
+
Concurrent-run telemetry shares an observation log; use the aggregate count
|
|
86
|
+
in `concurrency.json`, rather than summing each invocation's overlapping window.
|
|
87
|
+
|
|
88
|
+
These checks establish task invalidation and restored artifact integrity for this
|
|
89
|
+
snapshot. They do not establish browser behavior, fresh per-run verification
|
|
90
|
+
reports, source isolation during concurrent edits, or acceptance correctness.
|
|
91
|
+
The existing ADS coordinator was neither replaced nor bypassed in production.
|
|
92
|
+
|
|
93
|
+
## Assessment
|
|
94
|
+
|
|
95
|
+
There is a clear win for repeated identical batch work: approximately **158 times
|
|
96
|
+
faster** for this unchanged pipeline. Cold or edited work benefits from parallel
|
|
97
|
+
execution, which ADS could also obtain with a small bounded scheduler. Two-task
|
|
98
|
+
execution increases the memory requirement; task count alone is not a memory
|
|
99
|
+
budget.
|
|
100
|
+
|
|
101
|
+
The follow-up integration adopts Turbo as the mandatory internal backend for
|
|
102
|
+
controlled architecture batch tasks, with local caching enabled by default. Keep
|
|
103
|
+
ADS's source/freshness checks, result ownership, cancellation,
|
|
104
|
+
resource budgets and acceptance publication. Keep the live preview compiler warm;
|
|
105
|
+
this experiment does not justify launching Turbo on every edit or replacing the
|
|
106
|
+
interactive compiler's internal graph cache. Restored assets must be republished
|
|
107
|
+
into a current ADS session, distinguishing reused evidence from a new execution.
|
|
108
|
+
The follow-up proofs below exercise cross-checkout restoration and browser use.
|
|
109
|
+
|
|
110
|
+
This POC intentionally uses broad task inputs. It does not yet demonstrate
|
|
111
|
+
component-granular cache reuse or safe parallel MCP acceptance/verification. Those
|
|
112
|
+
require ADS dependency selection, isolated outputs and shared in-flight work.
|
|
113
|
+
|
|
114
|
+
## Reproduction and artifacts
|
|
115
|
+
|
|
116
|
+
From the ADS checkout, use a fresh output directory and the same frozen-source
|
|
117
|
+
input to reproduce exactly. The default input is `../csc`; another project needs
|
|
118
|
+
its edit targets adjusted because this small POC targets Neezler's Badge/tokens.
|
|
119
|
+
The runner installs pinned Turbo only inside its output directory. A new snapshot
|
|
120
|
+
of an actively edited checkout can differ; preparation rejects detected races.
|
|
121
|
+
|
|
122
|
+
```sh
|
|
123
|
+
export ADS_TURBO_POC_OUTPUT=output/turbo-poc-new
|
|
124
|
+
systemd-run --user --scope -p MemoryMax=6G -p MemorySwapMax=0 \
|
|
125
|
+
env ADS_TURBO_POC_OUTPUT="$ADS_TURBO_POC_OUTPUT" \
|
|
126
|
+
node scripts/benchmarks/turbo-poc/run.mjs /path/to/neezler
|
|
127
|
+
systemd-run --user --scope -p MemoryMax=6G -p MemorySwapMax=0 \
|
|
128
|
+
env ADS_TURBO_POC_OUTPUT="$ADS_TURBO_POC_OUTPUT" \
|
|
129
|
+
node scripts/benchmarks/turbo-poc/run.mjs /path/to/neezler --extras
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Bun and Node must be on PATH. The second command adds the equivalent cold serial
|
|
133
|
+
and direct parallel controls to the first command's report. The measured run is
|
|
134
|
+
retained under `output/turbo-poc/`:
|
|
135
|
+
|
|
136
|
+
- `summary.json`: aggregated results and snapshot/toolchain provenance.
|
|
137
|
+
- `measurements.json`: individual commands, timing, sampled PSS/RSS and Turbo hashes.
|
|
138
|
+
- `concurrency.json`: both cold invocations and actual task-start records.
|
|
139
|
+
- `logs/` and each snapshot's `.turbo/runs/`: original task logs/run summaries.
|
|
140
|
+
- `seed/`: frozen benchmark source and exact executed task wrapper.
|
|
141
|
+
|
|
142
|
+
The Turbo variant's cache occupies approximately 3.0 MB after these revisions.
|
|
143
|
+
Generated snapshots, installed Turbo and cache artifacts are ignored by Git.
|
|
144
|
+
The initial POC changed only these drivers and this report. The subsequent
|
|
145
|
+
integration adds the internal source-task backend and verified preview handoff.
|
|
146
|
+
|
|
147
|
+
Turbo's input/output model and local-cache behavior follow its official
|
|
148
|
+
[caching guide](https://turborepo.dev/docs/crafting-your-repository/caching).
|
|
149
|
+
Single-package scheduling and run summaries use its
|
|
150
|
+
[run command](https://turborepo.dev/docs/reference/run).
|
|
151
|
+
|
|
152
|
+
## Follow-up integration proof
|
|
153
|
+
|
|
154
|
+
`output/turbo-proof-2/proofs.json` records three successful integration proofs
|
|
155
|
+
against ADS 0.3.41: a different checkout restored the complete graph, the original
|
|
156
|
+
checkout path was removed, and an actual MCP resource browser mounted Popover and
|
|
157
|
+
opened it. Restoring took 78 ms; invoking the existing full compiler to reestablish
|
|
158
|
+
current-session readiness took 2,340 ms. File restoration alone was not readiness.
|
|
159
|
+
|
|
160
|
+
The unreleased implementation separates that handoff from semantic discovery and
|
|
161
|
+
compiler startup. `output/turbo-proof-3/proofs.json` repeats all three proofs with
|
|
162
|
+
the local implementation: 129 scenarios, 318 assets, 73 ms restoration and
|
|
163
|
+
**1,148 ms handoff**, with the same graph revision before and after and successful
|
|
164
|
+
browser interaction. These are one-trial observations with changed implementation,
|
|
165
|
+
not a controlled statistical estimate; further warm samples are recorded separately.
|
|
166
|
+
The artifact set includes native graph metadata and the successful architecture
|
|
167
|
+
artifact store, but excludes live build status and policy results. Restored evidence
|
|
168
|
+
is republished for the destination session. Missing/corrupt input falls back safely.
|
|
169
|
+
|
|
170
|
+
Two real MCP clients also proved contention, own-request cancellation, descendant
|
|
171
|
+
cleanup (including a detached child), retry without using incomplete cache output,
|
|
172
|
+
warm reuse, reuse after server restart, and reading the previous result by ID.
|
|
173
|
+
A separate process was killed during validation: its detached child exited, restart
|
|
174
|
+
recorded an interrupted result without a baseline, and a fresh retry passed. Both
|
|
175
|
+
lifecycle proofs passed before and after the internal backend was introduced.
|
|
176
|
+
|
|
177
|
+
The production change deliberately caches ADS's controlled source-analysis task.
|
|
178
|
+
Opaque project scripts and live browser checks continue to execute under project
|
|
179
|
+
policy; this experiment does not establish their cache contracts. Bun's warm
|
|
180
|
+
interactive compiler and module cache remain in place. Local caching defaults on;
|
|
181
|
+
fresh/off/location controls and opt-in remote caching are documented in
|
|
182
|
+
[Batch task caching](../CACHING.md). GitHub CI needs CLI/cache-provider wiring,
|
|
183
|
+
not a new ADS server/API. These proofs ran on Linux x64; other platforms have not
|
|
184
|
+
been benchmarked here.
|
|
185
|
+
|
|
186
|
+
### Separating native restoration from batch analysis
|
|
187
|
+
|
|
188
|
+
The final `output/turbo-proof-4/proofs.json` repeats all three integration proofs
|
|
189
|
+
successfully after removing the redundant Turbo lookup from native graph restore:
|
|
190
|
+
**72 ms** artifact restoration and **1,021 ms** separate CLI handoff/startup. The
|
|
191
|
+
existing graph's successful validation stamp now also includes relevant Git
|
|
192
|
+
tracking, declared installed-package manifests and semantic environment. A mismatch
|
|
193
|
+
falls back to the guarded compile path, rather than reusing prior gate evidence.
|
|
194
|
+
|
|
195
|
+
`output/turbo-proof-4/handoff.json` contains a primed, rotating-order comparison,
|
|
196
|
+
three measured samples per arm, in one Bun process against that exact frozen graph:
|
|
197
|
+
|
|
198
|
+
| Same graph and new handoff | Median | Samples |
|
|
199
|
+
| --- | ---: | --- |
|
|
200
|
+
| Native graph restoration, no Turbo call | **401 ms** | 410, 401, 382 ms |
|
|
201
|
+
| Additional Turbo-cached source check, then restoration | **564 ms** | 546, 599, 564 ms |
|
|
202
|
+
| Additional direct source analysis, then restoration | **5,329 ms** | 5,329, 5,333, 5,291 ms |
|
|
203
|
+
|
|
204
|
+
The first arm is the production warm path. The other arms deliberately add a
|
|
205
|
+
batch source check; direct analysis executes the same synchronous analysis
|
|
206
|
+
primitive without a child-process startup. These timings isolate task-result
|
|
207
|
+
reuse from the handoff refactor. **Turbo is not the cause of the preview-handoff
|
|
208
|
+
speedup**: an unnecessary task lookup adds overhead to an already verified graph.
|
|
209
|
+
Its value is skipping matching batch analysis when a validation/check operation
|
|
210
|
+
would otherwise execute it. The complete standalone CLI includes startup costs
|
|
211
|
+
that this within-process comparison excludes. No compilation speedup is claimed.
|
|
212
|
+
|
|
213
|
+
After the initial POC has populated `output/turbo-poc/seed` and `tools`, build the
|
|
214
|
+
current tool and run the proofs with a new output directory (Bun/Node on PATH):
|
|
215
|
+
|
|
216
|
+
```sh
|
|
217
|
+
npm run build
|
|
218
|
+
export ADS_TURBO_PROOF_OUTPUT=output/turbo-proof-new
|
|
219
|
+
systemd-run --user --scope -p MemoryMax=6G -p MemorySwapMax=0 \
|
|
220
|
+
env ADS_TURBO_PROOF_OUTPUT="$ADS_TURBO_PROOF_OUTPUT" \
|
|
221
|
+
node scripts/benchmarks/turbo-poc/proofs.mjs
|
|
222
|
+
systemd-run --user --scope -p MemoryMax=6G -p MemorySwapMax=0 \
|
|
223
|
+
env ADS_TURBO_PROOF_OUTPUT="$ADS_TURBO_PROOF_OUTPUT" \
|
|
224
|
+
bun scripts/benchmarks/turbo-poc/handoff.mjs
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
The proof driver intentionally refuses existing snapshot directories. It uses the
|
|
228
|
+
installed third-party dependencies and frozen workspace sources from the initial
|
|
229
|
+
Neezler POC; it never edits the live application. Failed attempts remain available
|
|
230
|
+
under earlier output directories instead of being overwritten.
|
|
231
|
+
|
|
232
|
+
### Final implementation proof
|
|
233
|
+
|
|
234
|
+
`output/turbo-proof-final/proofs.json` records all three successful integration
|
|
235
|
+
proofs against the final internal runner, which invokes the installed Rust binary
|
|
236
|
+
without Turbo's convenience installer. The browser proof restored 129 scenarios
|
|
237
|
+
and 318 assets in **65 ms**, then established fresh destination readiness through a
|
|
238
|
+
separate CLI invocation in **978 ms**. The original checkout path was unavailable.
|
|
239
|
+
Cancellation, restart, detached-child cleanup, retained results and crash recovery
|
|
240
|
+
all passed again. Hermit-managed Bun **1.4.2** also passed the source check on the
|
|
241
|
+
same frozen project (`hermit-bun-1.4.2.json`).
|
|
242
|
+
|
|
243
|
+
The final `handoff.json` repeats the primed, rotating comparison with three samples:
|
|
244
|
+
|
|
245
|
+
| Path | Median | Samples |
|
|
246
|
+
| --- | ---: | --- |
|
|
247
|
+
| Native graph restoration; no Turbo call | **375 ms** | 360, 382, 375 ms |
|
|
248
|
+
| Additional Turbo source-cache hit, then restoration | **536 ms** | 538, 536, 529 ms |
|
|
249
|
+
| Additional executed source analysis, then restoration | **5,013 ms** | 5,075, 4,978, 5,013 ms |
|
|
250
|
+
|
|
251
|
+
These measurements confirm the division: native graph restoration is the warm
|
|
252
|
+
preview path; Turbo reuses deterministic batch analysis. It does not accelerate
|
|
253
|
+
compilation or make the already validated graph's native handoff faster.
|
|
254
|
+
|
|
255
|
+
The broad regression run exposed two compatibility defects, fixed before adoption:
|
|
256
|
+
Vite changes `NODE_ENV` during setup, so graph stamps now capture launch environment
|
|
257
|
+
rather than invalidating their own build; read-only inspection must work without a
|
|
258
|
+
project output directory, so unavailable/disabled cache storage uses the same runner
|
|
259
|
+
uncached in a temporary workspace. Dedicated regressions cover both behaviors.
|
|
260
|
+
|
|
261
|
+
The final full regression run passed **624/624 tests, zero skips or failures**,
|
|
262
|
+
with `ADS_TEST_BUN=1 npm test` in **764.8 seconds**, under an 8 GiB process-tree
|
|
263
|
+
limit with swap disabled. `output/turbo-proof-final/validation.json` records the
|
|
264
|
+
working-tree source fingerprint, runtime proof outcomes, timings and full-log
|
|
265
|
+
digest; `full-tests.log` retains the original output. This is unreleased working
|
|
266
|
+
code, not an npm release or a proof attached to a committed release tag.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reqvire-org/ads",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.43",
|
|
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": {
|
|
@@ -54,15 +54,16 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@modelcontextprotocol/server": "2.3.1",
|
|
57
|
+
"@wyw-in-js/transform": "2.1.3",
|
|
57
58
|
"css-tree": "3.2.1",
|
|
58
59
|
"postcss": "^8.5.30",
|
|
59
60
|
"postcss-selector-parser": "^7.1.6",
|
|
60
61
|
"postcss-value-parser": "^4.2.0",
|
|
61
62
|
"sharp": "^0.35.5",
|
|
63
|
+
"turbo": "2.11.10",
|
|
62
64
|
"typescript": "^5.9.3",
|
|
63
65
|
"yaml": "2.9.1",
|
|
64
|
-
"zod": "4.4.3"
|
|
65
|
-
"@wyw-in-js/transform": "2.1.3"
|
|
66
|
+
"zod": "4.4.3"
|
|
66
67
|
},
|
|
67
68
|
"devDependencies": {
|
|
68
69
|
"@babel/core": "^7.29.7",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/check-runner.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { writeFileSync } from "node:fs";
|
|
2
|
-
import { checkProject } from "./check.mjs";
|
|
3
|
-
|
|
4
|
-
// Candidate architecture analysis can retain a large TypeScript heap. Give it
|
|
5
|
-
// a process lifetime instead of growing the long-running MCP process's heap.
|
|
6
|
-
const [root, report, trackingRoot] = process.argv.slice(2);
|
|
7
|
-
writeFileSync(report, JSON.stringify(checkProject(root, { trackingRoot })));
|
|
File without changes
|
|
File without changes
|
|
File without changes
|