/** * -------------------------------------------------------------------- * docmd : the zero-config documentation engine. * * Plugin asset pipeline — async/await + capability regression tests * * Covers the regression bugs that broke plugin CSS/JS loading * after the Slice C.1+C.2 safeCall refactor: * * PAA-1 getAssets consumer in core/src/commands/build.ts must * await the async wrapper around getAssetsFn. Without the * await, `assets` is a Promise and `Array.isArray(assets)` * is false, so every plugin's `src`/`dest` copy is silently * skipped — search, git, mermaid, math, openapi CSS/JS never * land in site/assets/. * * PAA-2 getAssets consumer in core/src/engine/generator.ts must * await the same wrapper. Without the await, no