@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.
Files changed (112) hide show
  1. package/README.md +7 -4
  2. package/dist/bootstrap-ds/ADS.md +2 -1
  3. package/dist/bootstrap-ds/README.md +23 -14
  4. package/dist/bootstrap-ds/design-system/components/Actions/Button/Button.ads.fixture.ts +1 -0
  5. package/dist/bootstrap-ds/design-system/components/Actions/Button/Button.ads.scenario.tsx +13 -0
  6. package/dist/bootstrap-ds/design-system/components/Actions/Button/Button.tsx +49 -0
  7. package/dist/bootstrap-ds/design-system/components/Actions/Button/README.md +12 -0
  8. package/dist/bootstrap-ds/design-system/components/Forms/TextField/README.md +14 -0
  9. package/dist/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.fixture.ts +6 -0
  10. package/dist/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +13 -0
  11. package/dist/bootstrap-ds/design-system/components/Forms/TextField/TextField.tsx +57 -0
  12. package/dist/bootstrap-ds/design-system/composition/Search/SearchPage/README.md +4 -0
  13. package/dist/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +7 -0
  14. package/dist/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +16 -0
  15. package/dist/bootstrap-ds/design-system/index.ts +4 -1
  16. package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/README.md +12 -0
  17. package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +1 -0
  18. package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +11 -0
  19. package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.tsx +41 -0
  20. package/dist/bootstrap-ds/design-system/review/demo-frame/DemoFrame.tsx +29 -0
  21. package/dist/bootstrap-ds/design-system/review/index.ts +2 -0
  22. package/dist/bootstrap-ds/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
  23. package/dist/bootstrap-ds/design-system/review/token-preview/TokenPreview.tsx +107 -19
  24. package/dist/bootstrap-ds/design-system/tokens/Color.ads.fixture.ts +18 -0
  25. package/dist/bootstrap-ds/design-system/tokens/{Foundation.ads.scenario.tsx → Color.ads.scenario.tsx} +1 -1
  26. 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
  27. package/dist/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx +4 -0
  28. package/dist/bootstrap-ds-preact/design-system/review/demo-frame/DemoFrame.tsx +29 -0
  29. package/dist/bootstrap-ds-preact/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
  30. package/dist/bootstrap-ds-preact/design-system/review/token-preview/TokenPreview.tsx +119 -0
  31. package/dist/bootstrap-ds-preact/design-system/showcase/mcp/main.tsx +6 -0
  32. package/dist/bootstrap-ds-preact/ds.config.json +19 -0
  33. package/dist/bootstrap-ds-preact/package.json +38 -0
  34. package/dist/bootstrap-ds-preact/src/vite-env.d.ts +7 -0
  35. package/dist/bootstrap-ds-preact/tsconfig.json +36 -0
  36. package/dist/bootstrap-ds-preact/vite.config.ts +23 -0
  37. package/dist/bun-compiler.mjs +8 -4
  38. package/dist/cli.mjs +7 -4
  39. package/dist/init.mjs +15 -7
  40. package/dist/mcp/execution-results.mjs +1 -0
  41. package/dist/mcp/mutations.mjs +1 -1
  42. package/dist/mcp/server.mjs +10 -8
  43. package/dist/mcp/showcase-host.mjs +5 -1
  44. package/dist/preview-builder.mjs +8 -2
  45. package/dist/scenarios-compiler.mjs +28 -1
  46. package/dist/skills/ads-break-ui/SKILL.md +2 -2
  47. package/dist/skills/ads-break-ui/references/validation.md +13 -0
  48. package/dist/skills/ads-designer/SKILL.md +33 -19
  49. package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +2 -1
  50. package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +23 -14
  51. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.fixture.ts +1 -0
  52. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.scenario.tsx +13 -0
  53. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.tsx +49 -0
  54. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/README.md +12 -0
  55. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/README.md +14 -0
  56. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.fixture.ts +6 -0
  57. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +13 -0
  58. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.tsx +57 -0
  59. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/README.md +4 -0
  60. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +7 -0
  61. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +16 -0
  62. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/index.ts +4 -1
  63. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/README.md +12 -0
  64. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +1 -0
  65. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +11 -0
  66. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.tsx +41 -0
  67. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/demo-frame/DemoFrame.tsx +29 -0
  68. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/index.ts +2 -0
  69. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
  70. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/token-preview/TokenPreview.tsx +107 -19
  71. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Color.ads.fixture.ts +18 -0
  72. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/{Foundation.ads.scenario.tsx → Color.ads.scenario.tsx} +1 -1
  73. 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
  74. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx +4 -0
  75. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/demo-frame/DemoFrame.tsx +29 -0
  76. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
  77. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/token-preview/TokenPreview.tsx +119 -0
  78. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/showcase/mcp/main.tsx +6 -0
  79. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/ds.config.json +19 -0
  80. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/package.json +38 -0
  81. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/src/vite-env.d.ts +7 -0
  82. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/tsconfig.json +36 -0
  83. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/vite.config.ts +23 -0
  84. package/dist/skills/ads-designer/references/cli.md +7 -2
  85. package/dist/skills/ads-designer/references/design-craft.md +1 -1
  86. package/dist/skills/ads-designer/references/validation.md +13 -0
  87. package/dist/skills/ads-import/SKILL.md +2 -2
  88. package/dist/skills/ads-import/references/cli.md +7 -2
  89. package/dist/skills/ads-import/references/validation.md +13 -0
  90. package/dist/skills/ads-motion/SKILL.md +2 -2
  91. package/dist/skills/ads-motion/references/validation.md +13 -0
  92. package/dist/skills/ads-port/SKILL.md +3 -3
  93. package/dist/skills/ads-port/references/cli.md +7 -2
  94. package/dist/skills/ads-port/references/validation.md +13 -0
  95. package/dist/task-cache.mjs +122 -0
  96. package/dist/task-worker.mjs +19 -0
  97. package/dist/validation-checks.mjs +7 -9
  98. package/dist/validation.mjs +3 -3
  99. package/docs/ADS.md +7 -7
  100. package/docs/ARCHITECTURE.md +12 -2
  101. package/docs/CACHING.md +99 -0
  102. package/docs/CHANGELOG.md +46 -12
  103. package/docs/GUIDE.md +16 -14
  104. package/docs/benchmarks/turbo-poc.md +266 -0
  105. package/package.json +4 -3
  106. package/dist/bootstrap-ds/design-system/components/.gitkeep +0 -0
  107. package/dist/bootstrap-ds/design-system/composition/.gitkeep +0 -0
  108. package/dist/bootstrap-ds/design-system/patterns/.gitkeep +0 -0
  109. package/dist/check-runner.mjs +0 -7
  110. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/.gitkeep +0 -0
  111. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/.gitkeep +0 -0
  112. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/.gitkeep +0 -0
@@ -8,7 +8,12 @@ Install Bun 1.4.1+ for ADS tooling and previews. The application keeps its own
8
8
  Node/npm or Bun build pipeline. Use these commands alongside this skill's research,
9
9
  implementation, documentation, and verification workflow. ADS must be a project
10
10
  development dependency, and its checks must run before the project's build.
11
- Routine builds use the local CLI.
11
+ Routine builds use the local CLI. ADS manages its internal Turbo dependency and
12
+ local task cache automatically; no project Turbo configuration is required.
13
+ In Hermit-managed projects, pin supported Bun (>=1.4.1); Turbo arrives through
14
+ ADS in devDependencies, so do not add a separate Hermit/global Turbo installation.
15
+ `ads check --fresh` and `ads validate --fresh` bypass task-cache reads. See
16
+ [validation](validation.md) for cache controls and CI wiring.
12
17
 
13
18
  Select an actual published package/version or a real local tarball supplied by
14
19
  the user or built from the tool checkout. Respect the project's installed
@@ -114,6 +119,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
114
119
  project type checking, meaningful tests, and browser comparisons.
115
120
 
116
121
  If no CLI distribution is available, continue with the target's existing
117
- checks. `ads-designer` includes an empty scaffold for offline bootstrapping.
122
+ checks. `ads-designer` includes the starter for offline bootstrapping.
118
123
  Install skills separately with `npx skills`; the tool does not install skills
119
124
  or fetch an external UI catalogue.
@@ -1,5 +1,18 @@
1
1
  # Validation scope
2
2
 
3
+ ADS runs architecture batch checks through its internal pinned Turbo dependency.
4
+ Local task caching is on by default; projects need no Turbo config. Source/tool,
5
+ dependency, Git-tracking and runtime changes invalidate reports. A hit reuses only
6
+ the source analysis, never policy success, browser results, a baseline or a run ID.
7
+ Project scripts and registered behavior tests still follow the selected policy.
8
+ Use CLI `check/validate --fresh`, or MCP `ads_check`, `ads_validate`, `ads_accept`
9
+ with `fresh:true`, to bypass task-cache reads. `ADS_CACHE=off` disables reads and
10
+ writes; `ADS_CACHE_DIR` relocates the local store. Remote caching is opt-in with
11
+ `ADS_REMOTE_CACHE=1` and standard Turbo provider variables. For CI, persist only
12
+ `.ds/task-cache` with the CI cache action or configure that remote provider; no
13
+ ADS cache service/API is needed. Inspect task-cache status in source reports,
14
+ execution summaries and `ads_results`; it is not a new test execution claim.
15
+
3
16
  These checks apply to both [direct editing and MCP-only editing](workflows.md).
4
17
  Direct source edits need current checks and rendered review; ordinary edits do
5
18
  not require a draft or acceptance call. Tracked proposals validate on acceptance.
@@ -46,8 +46,8 @@ production and scenario builds; never alias React to Preact just to shrink a
46
46
  preview. Native Preact uses its own JSX transform, hooks and DOM events (live
47
47
  text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
48
48
  not React presentation aliases. Keep Linaria extraction and the same public APIs.
49
- The shipped empty starter uses React; the tool repository's working example
50
- uses Preact. Neither is a component dependency of the receiving project.
49
+ The starter comes for React and for Preact; the tool repository's working
50
+ example uses Preact. Neither is a component dependency of the receiving project.
51
51
 
52
52
  ADS is tooling only. Work on project-owned source; do not install a component
53
53
  library or animation dependency merely because an upstream example uses one.
@@ -1,5 +1,18 @@
1
1
  # Validation scope
2
2
 
3
+ ADS runs architecture batch checks through its internal pinned Turbo dependency.
4
+ Local task caching is on by default; projects need no Turbo config. Source/tool,
5
+ dependency, Git-tracking and runtime changes invalidate reports. A hit reuses only
6
+ the source analysis, never policy success, browser results, a baseline or a run ID.
7
+ Project scripts and registered behavior tests still follow the selected policy.
8
+ Use CLI `check/validate --fresh`, or MCP `ads_check`, `ads_validate`, `ads_accept`
9
+ with `fresh:true`, to bypass task-cache reads. `ADS_CACHE=off` disables reads and
10
+ writes; `ADS_CACHE_DIR` relocates the local store. Remote caching is opt-in with
11
+ `ADS_REMOTE_CACHE=1` and standard Turbo provider variables. For CI, persist only
12
+ `.ds/task-cache` with the CI cache action or configure that remote provider; no
13
+ ADS cache service/API is needed. Inspect task-cache status in source reports,
14
+ execution summaries and `ads_results`; it is not a new test execution claim.
15
+
3
16
  These checks apply to both [direct editing and MCP-only editing](workflows.md).
4
17
  Direct source edits need current checks and rendered review; ordinary edits do
5
18
  not require a draft or acceptance call. Tracked proposals validate on acceptance.
@@ -167,13 +167,13 @@ production and scenario builds; never alias React to Preact just to shrink a
167
167
  preview. Native Preact uses its own JSX transform, hooks and DOM events (live
168
168
  text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
169
169
  not React presentation aliases. Keep Linaria extraction and the same public APIs.
170
- The shipped empty starter uses React; the tool repository's working example
171
- uses Preact. Neither is a component dependency of the receiving project.
170
+ The starter comes for React and for Preact; the tool repository's working
171
+ example uses Preact. Neither is a component dependency of the receiving project.
172
172
 
173
173
  ADS is tooling only. Implement in the target project's
174
174
  local ADS folder: the project owns the component source and theme values, and
175
175
  the app imports its local public barrel (normally `@ds`). Shared tooling supplies
176
- contracts, rules, skills, and empty scaffolding. Component libraries, patterns,
176
+ contracts, rules, skills, and a starter. Component libraries, patterns,
177
177
  themes and scenarios are external sources, loaded through explicit ADS
178
178
  workflows. Do not look for a built-in or optional UI catalogue in the tool.
179
179
 
@@ -8,7 +8,12 @@ Install Bun 1.4.1+ for ADS tooling and previews. The application keeps its own
8
8
  Node/npm or Bun build pipeline. Use these commands alongside this skill's research,
9
9
  implementation, documentation, and verification workflow. ADS must be a project
10
10
  development dependency, and its checks must run before the project's build.
11
- Routine builds use the local CLI.
11
+ Routine builds use the local CLI. ADS manages its internal Turbo dependency and
12
+ local task cache automatically; no project Turbo configuration is required.
13
+ In Hermit-managed projects, pin supported Bun (>=1.4.1); Turbo arrives through
14
+ ADS in devDependencies, so do not add a separate Hermit/global Turbo installation.
15
+ `ads check --fresh` and `ads validate --fresh` bypass task-cache reads. See
16
+ [validation](validation.md) for cache controls and CI wiring.
12
17
 
13
18
  Select an actual published package/version or a real local tarball supplied by
14
19
  the user or built from the tool checkout. Respect the project's installed
@@ -114,6 +119,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
114
119
  project type checking, meaningful tests, and browser comparisons.
115
120
 
116
121
  If no CLI distribution is available, continue with the target's existing
117
- checks. `ads-designer` includes an empty scaffold for offline bootstrapping.
122
+ checks. `ads-designer` includes the starter for offline bootstrapping.
118
123
  Install skills separately with `npx skills`; the tool does not install skills
119
124
  or fetch an external UI catalogue.
@@ -1,5 +1,18 @@
1
1
  # Validation scope
2
2
 
3
+ ADS runs architecture batch checks through its internal pinned Turbo dependency.
4
+ Local task caching is on by default; projects need no Turbo config. Source/tool,
5
+ dependency, Git-tracking and runtime changes invalidate reports. A hit reuses only
6
+ the source analysis, never policy success, browser results, a baseline or a run ID.
7
+ Project scripts and registered behavior tests still follow the selected policy.
8
+ Use CLI `check/validate --fresh`, or MCP `ads_check`, `ads_validate`, `ads_accept`
9
+ with `fresh:true`, to bypass task-cache reads. `ADS_CACHE=off` disables reads and
10
+ writes; `ADS_CACHE_DIR` relocates the local store. Remote caching is opt-in with
11
+ `ADS_REMOTE_CACHE=1` and standard Turbo provider variables. For CI, persist only
12
+ `.ds/task-cache` with the CI cache action or configure that remote provider; no
13
+ ADS cache service/API is needed. Inspect task-cache status in source reports,
14
+ execution summaries and `ads_results`; it is not a new test execution claim.
15
+
3
16
  These checks apply to both [direct editing and MCP-only editing](workflows.md).
4
17
  Direct source edits need current checks and rendered review; ordinary edits do
5
18
  not require a draft or acceptance call. Tracked proposals validate on acceptance.
@@ -0,0 +1,122 @@
1
+ import { createHash } from "node:crypto";
2
+ import { createRequire } from "node:module";
3
+ import { spawnSync } from "node:child_process";
4
+ import { accessSync, constants, existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, writeFileSync } from "node:fs";
5
+ import path from "node:path";
6
+ import { fileURLToPath } from "node:url";
7
+ import { isInside, loadConfig } from "./config.mjs";
8
+ import { validationInputFiles } from "./validation-inputs.mjs";
9
+ import { previewRuntimeFingerprint } from "./runtime-requirements.mjs";
10
+ import { checkCommand } from "./validation-checks.mjs";
11
+
12
+ const hash = value => createHash("sha256").update(value).digest("hex");
13
+ const toolRoot = path.dirname(fileURLToPath(import.meta.url));
14
+ const semanticEnv = ["NODE_ENV", "NODE_OPTIONS", "BUN_OPTIONS", "TZ", "LANG", "LC_ALL"];
15
+ function turboBinary() {
16
+ const platform=process.platform==="win32"?"windows":process.platform==="android"?"linux":process.platform,arch=process.arch==="x64"?"64":process.arch;
17
+ try {
18
+ const resolve=createRequire(createRequire(import.meta.url).resolve("turbo/package.json"));
19
+ return resolve.resolve(`@turbo/${platform}-${arch}/bin/turbo${platform==="windows"?".exe":""}`);
20
+ } catch(cause) {
21
+ // Turbo's convenience JS launcher repairs missing binaries with npm install.
22
+ // Managed ADS operations must only run already-installed project dependencies.
23
+ throw Object.assign(new Error(`ADS needs its installed Turbo binary for ${platform}-${arch}. Reinstall ADS dependencies with platform optional dependencies enabled.`,{cause}),{code:"ADS_TASK_RUNTIME_MISSING"});
24
+ }
25
+ }
26
+ function toolInputs() {
27
+ const rows=[];
28
+ function visit(directory) {
29
+ for (const entry of readdirSync(directory,{withFileTypes:true}).sort((a,b)=>a.name.localeCompare(b.name))) {
30
+ const file=path.join(directory,entry.name);
31
+ if (entry.isDirectory() && !["skills","bootstrap-ds","showcase"].includes(entry.name)) visit(file);
32
+ else if(entry.isFile() && /\.(?:mjs|js|cjs|json)$/.test(entry.name)) rows.push([path.relative(toolRoot,file),hash(readFileSync(file))]);
33
+ }
34
+ }
35
+ visit(toolRoot);
36
+ // Include the tool's dependency lock when running from a source checkout.
37
+ const lock=path.join(toolRoot,"../package-lock.json");
38
+ if(existsSync(lock))rows.push(["tool-lock",hash(readFileSync(lock))]);
39
+ return rows;
40
+ }
41
+ // Recompute source digests per request: editing a running checkout must invalidate.
42
+ export function architectureExternalInputs(root, trackingRoot=root) {
43
+ const options=loadConfig(root),manifest=path.join(root,"package.json"),pkg=existsSync(manifest)?JSON.parse(readFileSync(manifest,"utf8")):{};
44
+ const dependencies=Object.keys({...pkg.dependencies,...pkg.devDependencies,...pkg.peerDependencies}).sort().map(name=>{
45
+ for(let directory=root;;directory=path.dirname(directory)) {
46
+ const file=path.join(directory,"node_modules",name,"package.json");
47
+ if(existsSync(file))return [name,hash(readFileSync(file))];
48
+ if(path.dirname(directory)===directory)return [name,null];
49
+ }
50
+ });
51
+ const tracked=spawnSync("git",["ls-files","-z","--","."],{cwd:trackingRoot,encoding:"utf8",maxBuffer:16*1024*1024});
52
+ const generated=[...options.config.assets.generatedPaths.map(file=>path.resolve(root,file)),path.join(root,".ds"),path.join(options.dsRoot,"dist-kit"),path.join(options.dsRoot,"dist-showcase")];
53
+ const noRepository=tracked.status===128 && /not a git repository/i.test(tracked.stderr??"");
54
+ const git={status:noRepository?0:tracked.status,error:tracked.error?.code??null,stderr:noRepository?"":tracked.stderr??"",files:(tracked.stdout??"").split("\0").filter(file=>file && generated.some(directory=>isInside(directory,path.resolve(root,file)))).sort().map(file=>[file,existsSync(path.resolve(root,file))||existsSync(path.resolve(trackingRoot,file))])};
55
+ return {dependencies,git,
56
+ environment:Object.fromEntries(semanticEnv.map(name=>[name,process.env[name]??null]))};
57
+ }
58
+ export function architectureTaskInputs(root, trackingRoot=root) {
59
+ return {schemaVersion:1,kind:"architecture",runtime:previewRuntimeFingerprint(),tool:toolInputs(),files:validationInputFiles(loadConfig(root)),...architectureExternalInputs(root,trackingRoot)};
60
+ }
61
+
62
+ export function taskCacheSettings(root) {
63
+ const directory=path.resolve(root,process.env.ADS_CACHE_DIR??".ds/task-cache");
64
+ return {backend:"turbo",enabled:process.env.ADS_CACHE!=="off",remote:process.env.ADS_REMOTE_CACHE==="1",directory};
65
+ }
66
+ function cacheDirectory(root, workspace) {
67
+ const settings=taskCacheSettings(root);
68
+ if(!settings.enabled)return {...settings,directory:path.join(workspace,"cache")};
69
+ try {
70
+ mkdirSync(settings.directory,{recursive:true});
71
+ if(realpathSync(settings.directory)!==settings.directory)throw new Error("ADS cache directory cannot resolve through a symlink.");
72
+ accessSync(settings.directory,constants.W_OK);
73
+ } catch(error) {
74
+ if(!["EACCES","EPERM","EROFS","ENOSPC","EDQUOT"].includes(error.code))throw error;
75
+ return {...settings,enabled:false,remote:false,directory:path.join(workspace,"cache"),reason:"cache-directory-unwritable"};
76
+ }
77
+ return settings;
78
+ }
79
+ function collect(directory) {
80
+ // Turbo owns serialization and atomic publication. Only prune finished, old
81
+ // artifacts, never current workspaces or live ADS evidence.
82
+ const entries=readdirSync(directory).filter(name=>/^[a-f0-9]+\.tar\.zst$/.test(name)).map(name=>{
83
+ const file=path.join(directory,name),stat=statSync(file),companions=["-meta.json","-manifest.json"].map(suffix=>file.replace(/\.tar\.zst$/,suffix));
84
+ return {file,companions,size:stat.size+companions.reduce((sum,file)=>sum+(existsSync(file)?statSync(file).size:0),0),mtime:stat.mtimeMs};
85
+ }).sort((a,b)=>b.mtime-a.mtime);
86
+ let bytes=0;
87
+ for(const entry of entries){bytes+=entry.size;if((bytes>256*1024*1024 || Date.now()-entry.mtime>7*86400000) && Date.now()-entry.mtime>60000){rmSync(entry.file,{force:true});for(const file of entry.companions)rmSync(file,{force:true});}}
88
+ }
89
+
90
+ /** One backend for deterministic ADS batch checks. Cache hits are still fenced
91
+ * against current source; they never restore locks, policy results or baselines. */
92
+ export async function runArchitectureTask(root, trackingRoot, directory, signal, {fresh=false}={}) {
93
+ // A nonexistent target is a structural diagnostic, not a task workspace to
94
+ // create as a side effect. The analysis primitive exits before source work.
95
+ if(!existsSync(root)){const {checkProject}=await import("./check.mjs");return checkProject(root);}
96
+ const settings=cacheDirectory(trackingRoot,directory),inputs=architectureTaskInputs(root,trackingRoot),key=hash(JSON.stringify(inputs));
97
+ writeFileSync(path.join(directory,"inputs.json"),JSON.stringify(inputs));
98
+ writeFileSync(path.join(directory,"worker.mjs"),readFileSync(new URL("./task-worker.mjs",import.meta.url)));
99
+ writeFileSync(path.join(directory,"package.json"),JSON.stringify({name:"ads-internal-task",version:"1.0.0",private:true,packageManager:"bun@1.4.1",scripts:{architecture:`${process.versions.bun?"bun":"node"} worker.mjs`}}));
100
+ const passThrough=["ADS_TASK_ROOT","ADS_TASK_TRACKING_ROOT","ADS_TASK_TOOL","ADS_TASK_KEY"];
101
+ writeFileSync(path.join(directory,"turbo.json"),JSON.stringify({tasks:{architecture:{inputs:["inputs.json","worker.mjs"],outputs:["out/report.json"],passThroughEnv:passThrough}},globalPassThroughEnv:semanticEnv}));
102
+ const modes=settings.enabled?`local:${fresh?"w":"rw"}${settings.remote?`,remote:${fresh?"w":"rw"}`:""}`:"local:";
103
+ const args=["run","architecture","--single-package",`--cache=${modes}`,`--cache-dir=${settings.directory}`,"--concurrency=1","--summarize","--output-logs=errors-only","--ui=stream"];
104
+ const started=Date.now();let failure;
105
+ try { await checkCommand(turboBinary(),args,directory,signal,undefined,{category:"architecture",phase:"ads-check"},60000,
106
+ {ADS_TASK_ROOT:root,ADS_TASK_TRACKING_ROOT:trackingRoot,ADS_TASK_TOOL:toolRoot,ADS_TASK_KEY:key,TURBO_TELEMETRY_DISABLED:"1"}); }
107
+ catch(error){failure=error;}
108
+ if(signal?.aborted)throw failure??Object.assign(new Error("Mutation cancelled during validation."),{diagnostic:{rule:"mutation-cancelled",message:"Mutation cancelled during validation."}});
109
+ if(hash(JSON.stringify(architectureTaskInputs(root,trackingRoot)))!==key)throw Object.assign(new Error("Source, dependencies or Git tracking changed during the ADS task; retry against the current inputs."),{code:"ADS_SOURCE_CHANGED"});
110
+ const report=path.join(directory,"out/report.json");
111
+ if(!existsSync(report))throw failure??new Error("ADS task did not produce an architecture report.");
112
+ if(statSync(report).size>16*1024*1024)throw new Error("Architecture report exceeds 16 MiB.");
113
+ const result=JSON.parse(readFileSync(report,"utf8"));
114
+ // Failing source guards return actionable diagnostics but never a cacheable
115
+ // successful task. Infrastructure failures cannot masquerade as source errors.
116
+ if(failure && result.ok!==false)throw failure;
117
+ let hit=false;
118
+ const summaries=path.join(directory,".turbo/runs");
119
+ if(existsSync(summaries))for(const file of readdirSync(summaries).filter(name=>name.endsWith(".json"))){const summary=JSON.parse(readFileSync(path.join(summaries,file),"utf8"));hit=summary.tasks?.some(task=>task.cache?.status==="HIT")??false;}
120
+ try{collect(settings.directory);}catch{/* Cache maintenance never changes gate results. */}
121
+ return {...result,cache:{backend:"turbo",task:"architecture",key,status:!settings.enabled?"disabled":fresh?"fresh":hit?"hit":"miss",...(settings.reason?{reason:settings.reason}:{}),elapsedMs:Date.now()-started}};
122
+ }
@@ -0,0 +1,19 @@
1
+ import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
2
+ import { createHash } from "node:crypto";
3
+ import path from "node:path";
4
+ import { pathToFileURL } from "node:url";
5
+
6
+ // Copied to an isolated Turbo task workspace. Physical source/tool locations are
7
+ // passed at execution time, not embedded into portable cached task inputs.
8
+ const {ADS_TASK_ROOT:root,ADS_TASK_TRACKING_ROOT:trackingRoot,ADS_TASK_TOOL:tool,ADS_TASK_KEY:key}=process.env;
9
+ if(!root || !trackingRoot || !tool || !key)throw new Error("Missing ADS task execution context.");
10
+ const {architectureTaskInputs}=await import(pathToFileURL(path.join(tool,"task-cache.mjs")));
11
+ const current=()=>createHash("sha256").update(JSON.stringify(architectureTaskInputs(root,trackingRoot))).digest("hex");
12
+ if(current()!==key)throw new Error("ADS task inputs changed before execution.");
13
+ const {checkProject}=await import(pathToFileURL(path.join(tool,"check.mjs")));
14
+ const result=checkProject(root,{trackingRoot});
15
+ if(current()!==key)throw new Error("ADS task inputs changed during execution.");
16
+ // The descriptor is part of Turbo's key; also reject an inconsistent caller.
17
+ if(createHash("sha256").update(readFileSync("inputs.json")).digest("hex")!==key)throw new Error("ADS task input descriptor mismatch.");
18
+ mkdirSync("out",{recursive:true});writeFileSync("out/report.json",JSON.stringify(result));
19
+ if(!result.ok)process.exitCode=1;
@@ -1,6 +1,6 @@
1
- import { finishExecutionGuard, trackExecutionChild, trackExecutionWorkspace } from "./mcp/execution-context.mjs";
1
+ import { executionContext, finishExecutionGuard, trackExecutionChild, trackExecutionWorkspace } from "./mcp/execution-context.mjs";
2
2
  import { spawn } from "node:child_process";
3
- import { mkdtempSync, readFileSync, rmSync, statSync } from "node:fs";
3
+ import { mkdtempSync, readFileSync, rmSync } from "node:fs";
4
4
  import { tmpdir } from "node:os";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import path from "node:path";
@@ -9,22 +9,20 @@ import { packageScriptCommand } from "./development-runtime.mjs";
9
9
  import { failure as evidenceFailure } from "./evidence.mjs";
10
10
  const fail = (rule, message, file, failure) => Object.assign(new Error(message), { diagnostic: {rule, message, ...(file ? {file} : {}), ...(failure ? {failure} : {})} });
11
11
 
12
- export async function checkCandidate(root, signal, trackingRoot = root) {
12
+ export async function checkCandidate(root, signal, trackingRoot = root, options = {}) {
13
13
  const directory = mkdtempSync(path.join(tmpdir(), "ads-architecture-"));
14
14
  trackExecutionWorkspace(directory);
15
- const report = path.join(directory, "report.json");
16
15
  try {
17
- await checkCommand(process.execPath, [fileURLToPath(new URL("./check-runner.mjs", import.meta.url)), root, report, trackingRoot], root, signal, undefined, {category:"architecture",phase:"ads-check"});
18
- if (statSync(report).size > 16 * 1024 * 1024) throw new Error("Architecture report exceeds 16 MiB.");
19
- return JSON.parse(readFileSync(report, "utf8"));
16
+ const {runArchitectureTask}=await import("./task-cache.mjs");
17
+ return await runArchitectureTask(root,trackingRoot,directory,signal,{fresh:executionContext.getStore()?.fresh,...options});
20
18
  } finally { rmSync(directory, { recursive:true, force:true }); }
21
19
  }
22
20
 
23
- export function checkCommand(command, args, cwd, signal, input, gate = {category:"architecture",phase:"patch-preparation"}, timeoutMs = 60000) {
21
+ export function checkCommand(command, args, cwd, signal, input, gate = {category:"architecture",phase:"patch-preparation"}, timeoutMs = 60000, environment = {}) {
24
22
  return new Promise((resolve, reject) => {
25
23
  if (signal?.aborted) { reject(fail("mutation-cancelled", "Mutation cancelled before validation.",undefined,evidenceFailure("runner","mutation-execution","ADS_CANCELLED"))); return; }
26
24
  const child = spawn(command, args, { cwd, shell: false, detached: process.platform !== "win32", windowsHide: true, stdio: [input === undefined ? "ignore" : "pipe", "pipe", "pipe"],
27
- env: { ...process.env, PATH: [path.join(cwd, "node_modules/.bin"), path.dirname(process.execPath), process.env.PATH ?? ""].join(path.delimiter) } });
25
+ env: { ...process.env, ...environment, PATH: [path.join(cwd, "node_modules/.bin"), path.dirname(process.execPath), process.env.PATH ?? ""].join(path.delimiter) } });
28
26
  let output = "", failure, guard, done = false;
29
27
  const startedAt=Date.now();
30
28
  if (input !== undefined) { child.stdin.on("error", () => {}); child.stdin.end(input); }
@@ -39,7 +39,7 @@ export function createValidationController(directory, { previewWork } = {}) {
39
39
  return {
40
40
  status() { return { busy: !!active, ...(progress ? {progress} : {}) }; },
41
41
  async close() { const pending = active; pending?.abort(); await pending?.completion; },
42
- async run({scope = "all", policy = "validation"} = {}, signal, onProgress) {
42
+ async run({scope = "all", policy = "validation", fresh = false} = {}, signal, onProgress) {
43
43
  if (!["all","changed"].includes(scope)) throw new Error("Validation scope must be all or changed.");
44
44
  if (!["acceptance","validation"].includes(policy)) throw new Error("Policy must be acceptance or validation.");
45
45
  if (active) throw new Error("Validation is already running.");
@@ -77,9 +77,9 @@ export function createValidationController(directory, { previewWork } = {}) {
77
77
  }
78
78
  onProgress?.({stage:"selection",scope,requestedScope,units,elapsedMs:Date.now()-startedAt});
79
79
  stage("architecture");
80
- const core = await checkCandidate(root, signal);
80
+ const core = await checkCandidate(root, signal, root, {fresh});
81
81
  diagnostics.push(...core.diagnostics); advisories.push(...(core.advisories ?? []));
82
- checks.push({name:"architecture",passed:core.ok});
82
+ checks.push({name:"architecture",passed:core.ok,cache:core.cache});
83
83
  if (!core.ok) return complete();
84
84
  const scripts = projectChecks(options,policy);
85
85
  for (const launch of scripts) await command(`project:${launch.args.at(-1)}`,launch,options);
package/docs/ADS.md CHANGED
@@ -55,7 +55,7 @@ Verification claims remain scoped to the states and environments actually tested
55
55
 
56
56
  Framework choice belongs to the receiving project. Linaria is required for the
57
57
  component and pattern styling pipeline. Source checks support React and native Preact, including JSX, UI factories and
58
- DOM/CSS types. The empty scaffold uses React; the working example uses Preact. See [implementation support](GUIDE.md#implementation-support)
58
+ DOM/CSS types. The starter comes for React and for Preact; the working example uses Preact. See [implementation support](GUIDE.md#implementation-support)
59
59
  for checked formats and gaps.
60
60
 
61
61
  ## Showcase contract
@@ -493,11 +493,11 @@ are in `skills/ads-designer/references/`; MCP serves those packaged references.
493
493
  rejects drift during the tool build. Published packages include these references
494
494
  under `dist/skills/`.
495
495
 
496
- Root [bootstrap-ds/](../bootstrap-ds/README.md) is the canonical empty scaffold.
497
- Its identical copy under `skills/ads-designer/assets/bootstrap-ds/` makes the
498
- skill self-contained. Run `npm run sync:skill-starter` after edits and
499
- `npm run check:skill-starter` to verify the copy. Both contain empty product component/composition directories and a minimal project-owned
500
- token review renderer. The scaffold review renderer can be renamed or replaced; the tool
496
+ Root [bootstrap-ds/](../bootstrap-ds/README.md) is the canonical starter, with
497
+ `bootstrap-ds-preact/` copied over it for Preact. Their identical copies under
498
+ `skills/ads-designer/assets/` make the skill self-contained. Run `npm run sync:skill-starter` after edits and
499
+ `npm run check:skill-starter` to verify the copy. Both contain one example component in each of two groups, a pattern, a
500
+ composition and project-owned review renderers. The scaffold review renderer can be renamed or replaced; the tool
501
501
  does not require that name or its styles and ships no product UI catalogue.
502
502
 
503
503
  Tool releases should version contract changes, rules, skills, bootstrap support,
@@ -515,7 +515,7 @@ Do not require a particular component's tests in every project.
515
515
  The root package builds the ADS tool from `src/`; its tests and dummy project
516
516
  live under `tests/`. Runtime dependencies contain no React or UI library.
517
517
  Dependencies for the working example are development-only. The package allowlist contains only
518
- the CLI, core checks, MCP/Apps tooling and its browser client, skills, token contract, and empty scaffold. Packed-install tests
518
+ the CLI, core checks, MCP/Apps tooling and its browser client, skills, token contract, and starter. Packed-install tests
519
519
  verify it runs in a clean project without this repository's UI implementation.
520
520
 
521
521
  This repository's own design system lives in `design-system/` for proofs of
@@ -151,8 +151,9 @@ visual expression.
151
151
  ## Linaria is the implementation mechanism
152
152
 
153
153
  Linaria connects these responsibilities in the component and pattern styling
154
- pipeline. The native Preact working example in `design-system/` and the empty React starter
155
- in `bootstrap-ds/` implement that pipeline. Both are supported: the project
154
+ pipeline. The native Preact working example in `design-system/` and the starter
155
+ (React in `bootstrap-ds/`, Preact with `bootstrap-ds-preact/` copied over it)
156
+ implement that pipeline. Both are supported: the project
156
157
  chooses its rendering runtime, while ADS checks the same architecture and serves
157
158
  its actual compiled scenarios. A React application remains React; MCP does not
158
159
  substitute a different runtime or a visual reproduction.
@@ -800,6 +801,15 @@ for 100,000 files / 2 GiB. Unrelated native artifacts are not copied. Declared e
800
801
  inputs support project commands that read data outside the UI graph. When
801
802
  `acceptance.behaviorChecks` is true, affected registered behavior checks, including
802
803
  consumers of a changed shared controller, run in the isolated candidate project.
804
+ Architecture batch checks use the internal pinned Turbo runner and its installed
805
+ platform binary; no global Turbo or runtime dependency installer is invoked. Local artifact
806
+ reuse is enabled by default and fenced by current input/tool/runtime/Git state;
807
+ policy results, browser evidence, locks and baselines are never task outputs.
808
+ Project scripts remain uncached without a known deterministic contract. The warm
809
+ Bun preview compiler retains its module cache; complete verified graph restoration
810
+ publishes fresh build-session evidence without semantic rediscovery. See
811
+ [cache controls and CI wiring](CACHING.md).
812
+
803
813
  `acceptance.checks` and `validation.checks` explicitly select project scripts; no
804
814
  names are inferred. Validation selects its own `behaviorChecks` flag. Direct
805
815
  edits can invoke `ads validate --policy acceptance`; separate baselines prevent
@@ -0,0 +1,99 @@
1
+ # Batch task caching
2
+
3
+ ADS uses its pinned Turborepo dependency internally for architecture batch tasks.
4
+ Projects do not install Turbo, create `turbo.json`, or choose between backends.
5
+ Local caching is enabled out of the box for `ads check` and the source-check
6
+ stages of validation, acceptance, guarded mutations and preview compilation.
7
+ The synchronous exported `checkProject` function remains the analysis primitive;
8
+ the CLI and managed execution paths use the internal task runner. ADS invokes
9
+ the already-installed platform binary directly. It never runs Turbo's automatic
10
+ repair installer; a missing binary reports `ADS_TASK_RUNTIME_MISSING` and asks
11
+ for dependency reinstallation with optional platform packages enabled.
12
+
13
+ Keys include relevant ADS/application source, local dependency inputs,
14
+ configuration, lockfiles, declared installed package manifests, Git tracking,
15
+ ADS implementation and runtime/platform, and the check's semantic environment.
16
+ Inputs are fenced around execution and when a hit is consumed. Install from the
17
+ lockfile; request a fresh check after manually modifying installed package
18
+ contents without changing a lockfile.
19
+
20
+ Only successful deterministic source reports are cached. Project policy scripts
21
+ and registered browser/behavior checks still execute according to their policy;
22
+ ADS cannot infer cache contracts for arbitrary scripts. A hit never restores a
23
+ successful acceptance, baseline, run ID, lock or live build status. Each policy
24
+ invocation establishes its own freshness and result. The existing coordinator
25
+ retains execution ownership, cancellation and cleanup.
26
+
27
+ ## Controls
28
+
29
+ | Control | Behavior |
30
+ | --- | --- |
31
+ | Default | Local `.ds/task-cache`; remote cache disabled |
32
+ | `ads check --fresh`, `ads validate --fresh` | Bypass task-cache reads; refresh successful cached outputs |
33
+ | MCP `ads_check`, `ads_validate`, `ads_accept`: `fresh:true` | Same override for the operation's source checks |
34
+ | `ADS_CACHE=off` | Disable task-cache reads/writes; keep the same runner |
35
+ | `ADS_CACHE_DIR=/absolute/path` | Relocate or share the local artifact store |
36
+ | `ADS_REMOTE_CACHE=1` | Opt into remote caching with standard Turbo provider settings |
37
+
38
+ Read-only projects and unwritable/full cache stores run through the same Turbo
39
+ runner uncached in an isolated temporary workspace, reporting the fallback reason.
40
+ `ADS_CACHE=off` also avoids creating a project cache directory.
41
+
42
+ Fresh concerns batch task reuse; it does not force unchanged Bun modules to
43
+ recompile or change the selected test policy. `ads_status.taskCache` reports
44
+ settings. Source reports include key, hit/miss/fresh/disabled status and elapsed
45
+ time. Execution replies include compact cache status; `ads_results` check records
46
+ retain details.
47
+
48
+ Collection targets 256 MiB and seven days, pruning old archives while protecting
49
+ files written within the last minute. Concurrent activity can temporarily exceed
50
+ the target. Isolated temporary workspaces are removed on completion or recovery.
51
+ Only immutable archives share storage; live outputs and evidence stay isolated.
52
+
53
+ ## Preview restoration
54
+
55
+ The interactive Bun compiler keeps its incremental module/graph cache. Turbo is
56
+ not launched on every edit. ADS reopens a matching complete graph without semantic
57
+ scenario discovery or compiler startup: check cached registry/dependencies, verify
58
+ immutable assets, match the successful guard evidence already attached to the
59
+ graph against current source/tool/runtime/Git/dependency state, fence inputs, and
60
+ publish new session metadata. This native handoff does not invoke Turbo again. Missing, changed or corrupt artifacts fall back to compiling.
61
+ Guard failures remain failures. Old live build evidence is never restored.
62
+
63
+ ## CI wiring
64
+
65
+ Use the existing CLI and persist the artifact directory. No additional ADS cache
66
+ server, network API or MCP endpoint is needed. For example, after installing the
67
+ project's dependencies and supported Bun:
68
+
69
+ ```yaml
70
+ - uses: actions/cache@v4
71
+ with:
72
+ path: explorer/.ds/task-cache
73
+ key: ads-${{ runner.os }}-${{ runner.arch }}-${{ github.sha }}
74
+ restore-keys: |
75
+ ads-${{ runner.os }}-${{ runner.arch }}-
76
+ - run: bunx --no-install ads validate . --json
77
+ working-directory: explorer
78
+ ```
79
+
80
+ Change `explorer/` to the project directory. ADS task keys determine input matches;
81
+ the outer archive key only finds candidate artifacts. Cache this directory,
82
+ not the entire `.ds` directory and its run-specific state. Alternatively set
83
+ `ADS_REMOTE_CACHE=1` with the provider's `TURBO_TOKEN`, `TURBO_TEAM` and optionally
84
+ `TURBO_API`. Managed or self-hosted storage is a project choice. Tasks execute on
85
+ the caller's machine or CI runner on a miss.
86
+
87
+ See [measurements and proofs](benchmarks/turbo-poc.md), Turbo's
88
+ [GitHub Actions guide](https://turborepo.dev/docs/guides/ci-vendors/github-actions)
89
+ and [cache controls](https://turborepo.dev/docs/reference/run#--cache-options).
90
+
91
+ ## Hermit-managed projects
92
+
93
+ Turbo is a normal dependency of the ADS tool package, which a project installs as
94
+ `@reqvire-org/ads` in `devDependencies`. Hermit should pin Bun >=1.4.1 for ADS;
95
+ it should not install a second global Turbo executable or manage a project
96
+ `turbo.json`. Keep the project's other Rust/native/Node tools as its build requires.
97
+ This ADS repository and the local shadcn example have no Hermit environment.
98
+ Reqvire pins Bun 1.4.2. Neezler's native-client Hermit environment also supplies
99
+ Bun 1.4.2 for the root ADS/frontend commands invoked by its Makefile.
package/docs/CHANGELOG.md CHANGED
@@ -1,34 +1,68 @@
1
1
  # Changelog
2
2
 
3
- ## 0.3.41
3
+ ## 0.3.43
4
4
 
5
5
  <!-- ads-local-tests:start -->
6
- Local verification: **618/618 passed** with `ADS_TEST_BUN=1 npm test`.
7
- Tested commit: `05760c51a94bd84b2d298837b9dbba09edb875f2`; Node v24.13.0, Bun 1.4.1.
8
- Completed 2026-10-26T13:40:29.074Z (793 seconds).
6
+ Local verification: **627/627 passed** with `ADS_TEST_BUN=1 npm test`.
7
+ Tested commit: `abd701424a9170ade7078c03f44fb6aad0955367`; Node v24.13.0, Bun 1.4.1.
8
+ Completed 2026-10-29T18:22:19.947Z (748 seconds).
9
9
 
10
10
  <!-- ads-local-test-proof
11
11
  {
12
12
  "schema": 1,
13
- "version": "0.3.41",
14
- "commit": "05760c51a94bd84b2d298837b9dbba09edb875f2",
15
- "sourceSha256": "d890df59a6cdcd1b7e3082a7801fc4dcf2e37e417d2194c0142d4ea778851ecc",
13
+ "version": "0.3.43",
14
+ "commit": "abd701424a9170ade7078c03f44fb6aad0955367",
15
+ "sourceSha256": "14a5cd74f723db8ddca25821f77af4d30588d4812afc09be22a73c24593efe7f",
16
16
  "command": "ADS_TEST_BUN=1 npm test",
17
17
  "result": "pass",
18
- "tests": 618,
19
- "pass": 618,
18
+ "tests": 627,
19
+ "pass": 627,
20
20
  "fail": 0,
21
21
  "cancelled": 0,
22
22
  "skipped": 0,
23
23
  "node": "v24.13.0",
24
24
  "bun": "1.4.1",
25
- "completedAt": "2026-10-26T13:40:29.074Z",
26
- "durationMs": 792714,
27
- "logSha256": "cdb07ccccde9de440b321252e99252bc69c8cedd64b63d52eb36670d8d19b912"
25
+ "completedAt": "2026-10-29T18:22:19.947Z",
26
+ "durationMs": 748368,
27
+ "logSha256": "f1d44a616e81ebe89338a919df14b62ed4389ccd617297a7afd90efe1378c96c"
28
28
  }
29
29
  -->
30
30
  <!-- ads-local-tests:end -->
31
31
 
32
+ - The starter is a base to build on: two token groups (Color; Space, type &
33
+ motion) shown as tiles with live values, `Button` and `TextField` in two
34
+ component groups, a `SearchBar` pattern and a `SearchPage` composition, with
35
+ review `DemoFrame` and `ScreenFrame` renderers. Init copies the token groups and
36
+ keeps section folders' placeholders only while they are empty.
37
+ - Ship the starter for Preact as well as React: `bootstrap-ds-preact/`
38
+ replaces the React starter's package, compiler settings, scenario mount, token
39
+ preview hooks and scenario types when copied over `bootstrap-ds/`. The
40
+ `ads-designer` skill bundles both and bootstraps the project's framework instead
41
+ of porting React files by hand.
42
+ - `ads init --framework` writes that framework's token preview and scenario mount
43
+ from its starter.
44
+ - Fix Vite preview builds failing for every view once a growing warm-up graph
45
+ reused a module whose transform generates a stylesheet (Linaria's virtual
46
+ `.wyw-in-js.css`): such cached modules are transformed again in the new graph.
47
+ - A showcase whose port is taken names the likely owner (another showcase or the
48
+ project's ADS MCP) and how to resolve it. Skills and the starter guide keep
49
+ `dev:showcase` and the MCP on different ports.
50
+
51
+ ## 0.3.42
52
+
53
+ - Use pinned internal Turbo for deterministic architecture batch tasks, with
54
+ local caching enabled by default, fresh/off/shared-directory controls and
55
+ opt-in remote caching. Preserve policy script/test execution, source fences,
56
+ process ownership, cancellation and fresh run evidence. Report cache provenance.
57
+ - Keep read-only source inspection available: disabled or unavailable cache storage
58
+ runs uncached in a temporary workspace through the same runner. Invoke only the
59
+ installed Turbo platform binary; managed operations never run its repair installer.
60
+ - Restore complete verified preview graphs without repeating semantic scenario
61
+ discovery or starting a compiler; publish fresh live-session evidence. Document
62
+ CI cache wiring and keep the interactive Bun compiler's incremental graph.
63
+
64
+ ## 0.3.41
65
+
32
66
  - Coordinate validation, verification, draft acceptance and guarded edits across all
33
67
  clients of one ADS process. Return structured lock/holder/progress responses;
34
68
  keep Explorer and preview serving available.